Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.39 kb
require File.dirname(__FILE__) + "/lib/enhanced_query_analyzer"
ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
if !instance_methods.include?("old_select_aliased_by_query_analyzer")
public :select
alias_method :old_select_aliased_by_query_analyzer, :select
def select(sql, name = nil)
EnhancedQueryAnalyzer.select(self, sql, name)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.