Skip to content

Commit

Permalink
reducing the number of parameters to select()
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Oct 27, 2010
1 parent 0d23c21 commit f73a3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/connections/native_oracle/connection.rb
Expand Up @@ -37,10 +37,10 @@
ActiveRecord::Base.connection.class.class_eval do
IGNORED_SELECT_SQL = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from ((all|user)_tab_columns|(all|user)_triggers|(all|user)_constraints)/im]

def select_with_query_record(sql, name = nil, return_column_names = false)
def select_with_query_record(sql, name = nil)
$queries_executed ||= []
$queries_executed << sql unless IGNORED_SELECT_SQL.any? { |r| sql =~ r }
select_without_query_record(sql, name, return_column_names)
select_without_query_record(sql, name)
end

alias_method_chain :select, :query_record
Expand Down

0 comments on commit f73a3e6

Please sign in to comment.