Skip to content

Commit

Permalink
task fix for Rails 2.0.x - thanks to Roop on the mailing list.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Aug 20, 2010
1 parent a290245 commit fd0b770
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/thinking_sphinx/tasks.rb
Expand Up @@ -4,7 +4,12 @@
task :app_env do
if defined?(RAILS_ROOT)
Rake::Task[:environment].invoke
Rails.configuration.cache_classes = false

if defined?(Rails.configuration)
Rails.configuration.cache_classes = false
else
Rails::Initializer.run { |config| config.cache_classes = false }
end
end

Rake::Task[:merb_env].invoke if defined?(Merb)
Expand Down

0 comments on commit fd0b770

Please sign in to comment.