instance method
write
Ruby on Rails 5.2.8.1
Since v4.1.16Signature
write(object, options = {})
No documentation comment.
Parameters
-
objectreq -
optionsopt = {}
Source
# File actionpack/lib/action_controller/metal/live.rb, line 100
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 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Live::SSE