instance method
write
Ruby on Rails 7.2.3
Since v4.1.16Signature
write(object, options = {})
No documentation comment.
Parameters
-
objectreq -
optionsopt = {}
Source
# File actionpack/lib/action_controller/metal/live.rb, line 124
def write(object, options = {})
case object
when String
perform_write(object, options)
else
perform_write(ActiveSupport::JSON.encode(object), options)
end
end
Defined in actionpack/lib/action_controller/metal/live.rb line 124
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Live::SSE