Skip to content

Commit

Permalink
Fix typo and potential conflict with ActiveRecord in Observer support
Browse files Browse the repository at this point in the history
  • Loading branch information
cgriego committed Mar 14, 2011
1 parent f463c01 commit 1d52669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/railtie.rb
Expand Up @@ -131,7 +131,7 @@ def self.generator
config.after_initialize do
::Mongoid.instantiate_observers

ActionDispatch::Callbacks.to_prepare(:activerecord_instantiate_observers) do
ActionDispatch::Callbacks.to_prepare(:mongoid_instantiate_observers) do
::Mongoid.instantiate_observers
end
end
Expand Down

0 comments on commit 1d52669

Please sign in to comment.