Method: Filemaker::Model#cache_key
- Defined in:
- lib/filemaker/model.rb
#cache_key ⇒ Object
40 41 42 43 44 45 |
# File 'lib/filemaker/model.rb', line 40 def cache_key return "#{model_key}/new" if new_record? return "#{model_key}/#{id}-#{updated_at.to_datetime.utc.to_s(:number)}" \ if respond_to?(:updated_at) && send(:updated_at) "#{model_key}/#{id}" end |