lib/fastly-rails/mongoid/surrogate_key.rb in fastly-rails-0.1.5 vs lib/fastly-rails/mongoid/surrogate_key.rb in fastly-rails-0.1.6
- old
+ new
@@ -5,11 +5,11 @@
extend ActiveSupport::Concern
module ClassMethods
def purge_all
- FastlyRails.client.get_service(service_id).purge_by_key(table_key)
+ FastlyRails::Client.purge_by_key(table_key)
end
def table_key
collection_name
end
@@ -26,10 +26,10 @@
def table_key
self.class.table_key
end
def purge
- FastlyRails.client.get_service(service_id).purge_by_key(record_key)
+ FastlyRails::Client.purge_by_key(record_key)
end
def purge_all
self.class.purge_all
end