Skip to content

Commit

Permalink
use middleware only for rails 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard committed Oct 14, 2009
1 parent 436e17b commit 5316f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bullet.rb
Expand Up @@ -17,7 +17,9 @@ def enable=(enable)
if enable?
Bullet::ActiveRecord.enable
Bullet::ActionController.enable
::ActionController::Dispatcher.middleware.use Bulletware
if ::Rails::VERSION::STRING =~ /^2.3/
::ActionController::Dispatcher.middleware.use Bulletware
end
end
end

Expand Down

0 comments on commit 5316f22

Please sign in to comment.