Permalink
Browse files

Fixing typo for config.mongomodel

  • Loading branch information...
1 parent 8af2c6b commit f3c432b03ed82b30c036beee931c705bb9714143 @RevCBH committed Mar 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongomodel/railtie.rb
@@ -10,7 +10,7 @@ def self.rescue_responses
config.app_generators.orm :mongomodel, :migration => false
- config.mongo_model = ActiveSupport::OrderedOptions.new
+ config.mongomodel = ActiveSupport::OrderedOptions.new
rake_tasks do
load "mongomodel/tasks/database.rake"
@@ -56,7 +56,7 @@ def self.rescue_responses
end
end
end
-
+
initializer "mongomodel.observers" do |app|
MongoModel::EmbeddedDocument.observers = app.config.mongomodel.observers || []
end

0 comments on commit f3c432b

Please sign in to comment.