DataMapper::Is::Remixable::RemixeeClassMethods

Description

Methods available to any model that is :remixable

Public Instance Methods

auto_migrate_down!(args=nil) click to toggle source
# File lib/dm-is-remixable/is/remixable.rb, line 446
def auto_migrate_down!(args=nil)
  DataMapper.logger.warn("Skipping auto_migrate_down! for remixable module (#{self.name})")
end
auto_migrate_up!(args=nil) click to toggle source

Squash auto_migrate! model.auto_migrate! never gets called directly from dm-core/auto_migrations.rb The models are explicitly migrated down and up again.

# File lib/dm-is-remixable/is/remixable.rb, line 442
def auto_migrate_up!(args=nil)
  DataMapper.logger.warn("Skipping auto_migrate_up! for remixable module (#{self.name})")
end
auto_upgrade!(args=nil) click to toggle source

Squash auto_upgrade!

# File lib/dm-is-remixable/is/remixable.rb, line 451
def auto_upgrade!(args=nil)
  DataMapper.logger.warn("Skipping auto_upgrade! for remixable module (#{self.name})")
end
suffix(sfx=nil) click to toggle source
  • suffix

Description

modifies the storage name suffix, which is by default based on the Remixable Module name

Parameters

suffix <String> storage name suffix to use (singular)
# File lib/dm-is-remixable/is/remixable.rb, line 434
def suffix(sfx=nil)
  @suffix = sfx unless sfx.nil?
  @suffix
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.