Module: FastlyRails::Mongoid::SurrogateKey::ClassMethods
- Defined in:
- lib/fastly-rails/mongoid/surrogate_key.rb
Instance Method Summary collapse
Instance Method Details
#fastly_service_identifier ⇒ Object
17 18 19 |
# File 'lib/fastly-rails/mongoid/surrogate_key.rb', line 17 def fastly_service_identifier FastlyRails.service_id end |
#purge_all ⇒ Object
9 10 11 |
# File 'lib/fastly-rails/mongoid/surrogate_key.rb', line 9 def purge_all FastlyRails.purge_by_key(table_key) end |
#table_key ⇒ Object
13 14 15 |
# File 'lib/fastly-rails/mongoid/surrogate_key.rb', line 13 def table_key collection_name end |