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

Version Path
devise_sociable-0.1.0 vendor/bundle/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
orm_adapter-0.2.0 lib/orm_adapter.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
orm_adapter-0.1.0 lib/orm_adapter.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/orm_adapter-0.0.7/lib/orm_adapter.rb
orm_adapter-0.0.7 lib/orm_adapter.rb
orm_adapter-0.0.6 lib/orm_adapter.rb
orm_adapter-0.0.5 lib/orm_adapter.rb