Skip to content

Commit

Permalink
Fix deprecations notices on Rails3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Crocker committed Oct 19, 2010
1 parent 79a6d19 commit 15c7923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mongoid/railtie.rb
Expand Up @@ -10,7 +10,7 @@ module Rails #:nodoc:
module Mongoid #:nodoc:
class Railtie < Rails::Railtie #:nodoc:

config.generators.orm :mongoid, :migration => false
config.app_generators.orm :mongoid, :migration => false

rake_tasks do
load "mongoid/railties/database.rake"
Expand Down
2 changes: 1 addition & 1 deletion lib/rails/mongoid.rb
Expand Up @@ -7,7 +7,7 @@ class << self
# that indexing and inheritance work in both development and production
# with the same results.
def load_models(app)
app.config.paths.app.models.each do |path|
app.config.paths['app/models'].each do |path|
Dir.glob("#{path}/**/*.rb").sort.each do |file|
require_dependency(file)
end
Expand Down

0 comments on commit 15c7923

Please sign in to comment.