instance method
unprepared_statement
Ruby on Rails 6.1.7.10
Since v4.0.13Signature
unprepared_statement()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 252
def unprepared_statement
cache = prepared_statements_disabled_cache.add?(object_id) if @prepared_statements
yield
ensure
cache&.delete(object_id)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract_adapter.rb line 252
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::AbstractAdapter