Apply bindings to querys from QueryRecorder
- local tests that assume certain parameters to queries from QueryRecorder fail. These same tests don't fail in the runners, and I can't tell why. This fixes the local failures
This commit is contained in:
parent
f90759bbf3
commit
0cdd69ed5f
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ module ActiveRecord
|
||||||
@log = []
|
@log = []
|
||||||
@cached = []
|
@cached = []
|
||||||
@skip_cached = skip_cached
|
@skip_cached = skip_cached
|
||||||
ActiveSupport::Notifications.subscribed(method(:callback), 'sql.active_record', &block)
|
# force replacement of bind parameters to give tests the ability to check for ids
|
||||||
|
ActiveRecord::Base.connection.unprepared_statement do
|
||||||
|
ActiveSupport::Notifications.subscribed(method(:callback), 'sql.active_record', &block)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def show_backtrace(values)
|
def show_backtrace(values)
|
||||||
|
|
Loading…
Reference in a new issue