lib/mongoid.rb in mongoid-2.0.0.rc.7 vs lib/mongoid.rb in mongoid-2.0.0.rc.8

- old
+ new

@@ -40,10 +40,11 @@ require "will_paginate/collection" require "mongo" require "mongoid/errors" require "mongoid/extensions" require "mongoid/safe" +require "mongoid/relations" require "mongoid/atomicity" require "mongoid/attributes" require "mongoid/callbacks" require "mongoid/collection" require "mongoid/collections" @@ -66,21 +67,21 @@ require "mongoid/javascript" require "mongoid/json" require "mongoid/keys" require "mongoid/logger" require "mongoid/matchers" -require "mongoid/modifiers" require "mongoid/multi_parameter_attributes" require "mongoid/multi_database" require "mongoid/named_scope" require "mongoid/nested_attributes" +require "mongoid/observer" require "mongoid/paths" require "mongoid/persistence" -require "mongoid/relations" require "mongoid/safety" require "mongoid/scope" require "mongoid/serialization" +require "mongoid/sharding" require "mongoid/state" require "mongoid/timestamps" require "mongoid/validations" require "mongoid/versioning" require "mongoid/components" @@ -127,10 +128,11 @@ # Take all the public instance methods from the Config singleton and allow # them to be accessed through the Mongoid module directly. # # @example Delegate the configuration methods. # Mongoid.database = Mongo::Connection.new.db("test") - Mongoid::Config.public_instance_methods(false).each do |name| + (Mongoid::Config.public_instance_methods(false) + + ActiveModel::Observing::ClassMethods.public_instance_methods(false)).each do |name| (class << self; self; end).class_eval <<-EOT def #{name}(*args) configure.send("#{name}", *args) end EOT