Sha256: 166b776e22ca07a52e0fa059f8d9a6c98385783b5f9f1621bf8b4ce57c79c43e
Contents?: true
Size: 650 Bytes
Versions: 11
Compression:
Stored size: 650 Bytes
Contents
require 'orm_adapter/base' require 'orm_adapter/to_adapter' require 'orm_adapter/version' module OrmAdapter # A collection of registered adapters def self.adapters @@adapters ||= [] end # All model classes from all registered adapters def self.model_classes self.adapters.map { |a| a.model_classes }.flatten end end require 'orm_adapter/adapters/active_record' if defined?(ActiveRecord::Base) require 'orm_adapter/adapters/data_mapper' if defined?(DataMapper::Resource) require 'orm_adapter/adapters/mongoid' if defined?(Mongoid::Document) require 'orm_adapter/adapters/mongo_mapper' if defined?(MongoMapper::Document)
Version data entries
11 entries across 11 versions & 3 rubygems