Class: ShopifyAPI::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/shopify_api.rb

Class Method Summary collapse

Methods included from Countable

#count

Class Method Details

.prefix(options = {}) ⇒ Object

Hack to allow both Shop and other Events in through the same AR class



386
387
388
# File 'lib/shopify_api.rb', line 386

def self.prefix(options={})
  options[:resource].nil? ? "/admin/" : "/admin/#{options[:resource]}/#{options[:resource_id]}/"
end