Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak to bring more closely in line with standard Rails practice for …

…overriding methods.

git-svn-id: https://terralien.devguard.com/svn/projects/plugins/query_trace@16 62287d4f-6109-0410-89f5-c3c281edf842
  • Loading branch information...
commit 0d6450d3ab58de90e06b168380f7394296210b60 1 parent 8dcf97b
nathaniel authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/query_trace.rb
7 lib/query_trace.rb
View
@@ -1,13 +1,14 @@
module QueryTrace
- def self.included(klass)
- klass.class_eval %(
+ def self.append_features(klass)
+ super
+ klass.class_eval do
alias_method :log_info_without_trace, :log_info
alias_method :log_info, :log_info_with_trace
def row_even
@@row_even
end
- )
+ end
end
def log_info_with_trace(sql, name, runtime)
Please sign in to comment.
Something went wrong with that request. Please try again.