Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent a double-include from hosing things.

git-svn-id: https://terralien.devguard.com/svn/projects/plugins/query_trace@18 62287d4f-6109-0410-89f5-c3c281edf842
  • Loading branch information...
commit 6a2afafa3081a180b15e99ab0bd809ca1ce6e4d8 1 parent de578fa
nathaniel authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/query_trace.rb
View
6 lib/query_trace.rb
@@ -2,8 +2,10 @@ module QueryTrace
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
+ unless method_defined?(:log_info_without_trace)
+ alias_method :log_info_without_trace, :log_info
+ alias_method :log_info, :log_info_with_trace
+ end
end
klass.class_eval %(
def row_even
Please sign in to comment.
Something went wrong with that request. Please try again.