lib/access/favorite.rb in access-2.0.48 vs lib/access/favorite.rb in access-2.0.49
- old
+ new
@@ -57,12 +57,12 @@
Access::Api.new.favorites_find store_key, options.merge(favorite_type: 'stores')
end
# create
- def self.create(offer_key, options = {})
+ def self.create(resource_key, options = {})
# must pass in a favorite_type
- Access::Api.new.favorites_create offer_key, options
+ Access::Api.new.favorites_create resource_key, options
end
def self.create_offer(offer_key, options = {})
Access::Api.new.favorites_create offer_key, options.merge(favorite_type: 'offers')
end