Skip to content

Commit

Permalink
RAILS_ROOT -> Rails.root
Browse files Browse the repository at this point in the history
  • Loading branch information
packagethief committed Jan 13, 2010
1 parent 058455c commit 7263d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/configuration.rb
Expand Up @@ -87,7 +87,7 @@ def reset(custom_app_root=nil)
if custom_app_root
self.app_root = custom_app_root
else
self.app_root = RAILS_ROOT if defined?(RAILS_ROOT)
self.app_root = Rails.root if defined?(Rails)
self.app_root = Merb.root if defined?(Merb)
self.app_root ||= app_root
end
Expand Down
2 changes: 1 addition & 1 deletion lib/thinking_sphinx/tasks.rb
Expand Up @@ -2,7 +2,7 @@

namespace :thinking_sphinx do
task :app_env do
if defined?(RAILS_ROOT)
if defined?(Rails)
Rake::Task[:environment].invoke
Rails.configuration.cache_classes = false
end
Expand Down

0 comments on commit 7263d05

Please sign in to comment.