instance method
set_cookie
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
set_cookie(key, value)
No documentation comment.
Parameters
-
keyreq -
valuereq
Source
# File actionpack/lib/action_controller/response.rb, line 173
def set_cookie(key, value)
if value.has_key?(:http_only)
ActiveSupport::Deprecation.warn(
"The :http_only option in ActionController::Response#set_cookie " +
"has been renamed. Please use :httponly instead.", caller)
value[:httponly] ||= value.delete(:http_only)
end
super(key, value)
end
Defined in actionpack/lib/action_controller/response.rb line 173
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Response