Method: ActiveSupport::Cache::Entry#expires_at=
- Defined in:
- lib/active_support/cache/entry.rb
#expires_at=(value) ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/active_support/cache/entry.rb', line 51 def expires_at=(value) if value @expires_in = value.to_f - @created_at else @expires_in = nil end end |