Method: ContentfulModel::Base#cache_key
- Defined in:
- lib/contentful_model/base.rb
#cache_key(*timestamp_names) ⇒ Object
24 25 26 27 28 |
# File 'lib/contentful_model/base.rb', line 24 def cache_key(*) fail ArgumentError, "ContentfulModel::Base models don't support named timestamps." if .present? "#{self.class.to_s.underscore}/#{id}-#{updated_at.utc.strftime(TIME_FORMAT)}" end |