DataMapper::Adapters

Public Class Methods

include_migration_api(const_name) click to toggle source
# File lib/dm-migrations/auto_migration.rb, line 200
def self.include_migration_api(const_name)
  require auto_migration_extensions(const_name)
  if Migrations.const_defined?(const_name)
    adapter = const_get(const_name)
    adapter.send(:include, migration_module(const_name))
  end
rescue LoadError
  # Silently ignore the fact that no adapter extensions could be required
  # This means that the adapter in use doesn't support migrations
end
migration_module(const_name) click to toggle source
# File lib/dm-migrations/auto_migration.rb, line 211
def self.migration_module(const_name)
  Migrations.const_get(const_name)
end

Public Instance Methods

const_added(const_name) click to toggle source

@api private

# File lib/dm-migrations/auto_migration.rb, line 229
def const_added(const_name)
  include_migration_api(const_name)
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.