module DataMapper::Is::Predefined

Public Instance Methods

is_predefined() click to toggle source

Fired when your plugin gets included into a Model.

@note

If the model already includes `DataMapper::Migrations`, then
{MigrationMethods} will be extended into the Model.

@api private

# File lib/dm-is-predefined/is/predefined.rb, line 15
def is_predefined
  extend DataMapper::Is::Predefined::ClassMethods

  if defined?(DataMapper::Migrations) &&
     included_modules.include?(DataMapper::Migrations)
    extend MigrationMethods
  end
end