Skip to content

Commit

Permalink
Rails' LogSubscriber has moved to ActiveSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
Corin Langosch committed Jul 28, 2010
1 parent 8f9b627 commit 2363f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sequel-rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/sequel-rails/railties/log_subscriber.rb
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 2363f08

Please sign in to comment.