Skip to content

Commit

Permalink
Use rails's DSL for time ago
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 5, 2024
1 parent cf69d50 commit 8531abc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def append_cookie(existing_cookies)
end

def disable_action_cable_restarts_cookie
expiration = (Time.now + RESTARTS_SUPPRESSED_GRACE_PERIOD).utc
expiration = RESTARTS_SUPPRESSED_GRACE_PERIOD.from_now.utc
"#{COOKIE_NAME}=true; Path=/; Expires=#{expiration.httpdate}; HttpOnly"
end
end

0 comments on commit 8531abc

Please sign in to comment.