Sha256: ec8d36ee05f4c251741638a7f7939241d5b4ea9b1b94015d0c63bfa502f11e0a

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

module Motr
  module Orm
    
    module ActiveRecord #:nodoc:
      extend ActiveSupport::Concern
      
      included do        
        extend Motr::Mods
      end
      
      module ClassMethods
        def motr_orm_type; :active_record; end
        
        def create_mod_attribute!(name, type, options)
        end
      end
      
    end
    
  end
end

ActiveRecord::Base.send :include, Motr::Orm::ActiveRecord
# ActiveRecord::ConnectionAdapters::Table.send :include, Motr::Orm::ActiveRecord::Schema
# ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Motr::Orm::ActiveRecord::Schema

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motr-0.1.1 lib/motr/orm/active_record.rb
motr-0.1.0 lib/motr/orm/active_record.rb
motr-0.0.9 lib/motr/orm/active_record.rb
motr-0.0.8 lib/motr/orm/active_record.rb