Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[#3] Fixes: InstanceMethods is deprecated in ActiveSupport::Concern

Closes [#3]
  • Loading branch information...
commit 5df77044edd4aebeec2b3e58d3e355e45e0bdb5a 1 parent f42dcf6
@olivere olivere authored committed
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/tire/rails-logger/instrumentation.rb
View
12 lib/tire/rails-logger/instrumentation.rb
@@ -7,13 +7,11 @@ module Instrumentation
alias_method_chain :perform, :instrumentation
end
- module InstanceMethods
- def perform_with_instrumentation
- # Wrapper around the Search.perform method that logs search times.
- #
- ActiveSupport::Notifications.instrument("search.tire", :name => 'Search', :search => self.to_json) do
- perform_without_instrumentation
- end
+ def perform_with_instrumentation
+ # Wrapper around the Search.perform method that logs search times.
+ #
+ ActiveSupport::Notifications.instrument("search.tire", :name => 'Search', :search => self.to_json) do
+ perform_without_instrumentation
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.