lib/admin_it/data.rb in admin_it-1.0.11 vs lib/admin_it/data.rb in admin_it-1.1.0

- old
+ new

@@ -1,10 +1,10 @@ require File.join %w(admin_it data data_behavior) require File.join %w(admin_it data object) require File.join %w(admin_it data hash) -require File.join %w(admin_it data active_record) +# module AdminIt def self.register_data(entity_class, mod) return if entity_class.nil? @data_modules ||= [] @data_modules.unshift [entity_class, mod] @@ -18,7 +18,9 @@ end end register_data Object, AdminIt::ObjectData register_data Hash, AdminIt::HashData - register_data ActiveRecord::Base, AdminIt::ActiveRecordData end + +require File.join %w(admin_it data active_record) +require File.join %w(admin_it data mongoid)