instance method
to_session_value
Ruby on Rails 4.1.16
Since v4.0.13 Last seen in v4.1.16Available in: v4.0.13 v4.1.16
Signature
to_session_value()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/middleware/flash.rb, line 92
def to_session_value
return nil if empty?
{'discard' => @discard.to_a, 'flashes' => @flashes}
end
Defined in actionpack/lib/action_dispatch/middleware/flash.rb line 92
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Flash::FlashHash