instance method
flush
Ruby on Rails 7.0.10
Since v7.0.10Signature
flush()
No documentation comment.
Source
# File activerecord/lib/active_record/future_result.rb, line 18
def flush
events, @events = @events, []
events.each do |event|
event.payload[:lock_wait] = @future_result.lock_wait
ActiveSupport::Notifications.publish_event(event)
end
end
Defined in activerecord/lib/active_record/future_result.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::FutureResult::EventBuffer