instance method
pick_expiration
Ruby on Rails 1.2.1
Last seen in v1.3.0 PrivateSignature
pick_expiration(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File lib/global_id/signed_global_id.rb, line 80
def pick_expiration(options)
return options[:expires_at] if options.key?(:expires_at)
if expires_in = options.fetch(:expires_in) { self.class.expires_in }
expires_in.from_now
end
end
Defined in lib/global_id/signed_global_id.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in SignedGlobalID