Permalink
Browse files

Rails' LogSubscriber has moved to ActiveSupport

  • Loading branch information...
1 parent 8f9b627 commit 2363f08985a4b13be78bf2ae1ac72f5c1b631620 Corin Langosch committed Jul 28, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/sequel-rails/railtie.rb
  2. +1 −1 lib/sequel-rails/railties/log_subscriber.rb
View
2 lib/sequel-rails/railtie.rb
@@ -21,7 +21,7 @@ module Sequel
class Railtie < Rails::Railtie
- log_subscriber :sequel, ::Sequel::Railties::LogSubscriber.new
+ ::Sequel::Railties::LogSubscriber.attach_to :sequel
config.generators.orm :sequel, :migration => true
View
2 lib/sequel-rails/railties/log_subscriber.rb
@@ -1,7 +1,7 @@
module Sequel
module Railties
- class LogSubscriber < Rails::LogSubscriber
+ class LogSubscriber < ActiveSupport::LogSubscriber
def sql(event)
name = '%s (%.1fms)' % [event.payload[:name], event.duration]

0 comments on commit 2363f08

Please sign in to comment.