method
set_cookie
rails latest stable - Class:
ActionController::Response
set_cookie(key, value)public
No documentation available.
# File actionpack/lib/action_controller/response.rb, line 172
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