instance method
has_flash_object?
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
has_flash_object?(name=nil)
Does the specified flash object exist?
Parameters
-
nameopt = nil
Source
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 79
def has_flash_object?(name=nil)
ActiveSupport::Deprecation.warn("response.has_flash_object? has been deprecated. Use flash[name] instead", caller)
!flash[name].nil?
end
Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 79
· View on GitHub
· Improve this page
· Find usages on GitHub