DataMapper::Adapters

Public Class Methods

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

Private Class Methods

auto_migration_extensions(const_name) click to toggle source

@api private

     # File lib/dm-migrations/auto_migration.rb, line 219
219:       def auto_migration_extensions(const_name)
220:         name = adapter_name(const_name)
221:         name = 'do' if name == 'dataobjects'
222:         "dm-migrations/adapters/dm-#{name}-adapter"
223:       end

Public Instance Methods

const_added(const_name) click to toggle source

@api private

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.