Sha256: e18cff408090be323e2fbc347d25337702988d631f265b13e2e2383a1839efca
Contents?: true
Size: 895 Bytes
Versions: 6
Compression:
Stored size: 895 Bytes
Contents
module ShopifyApp class Configuration # Shopify App settings. These values should match the configuration # for the app in your Shopify Partners page. Change your settings in # `config/initializers/shopify_app.rb` attr_accessor :api_key attr_accessor :secret attr_accessor :scope attr_accessor :embedded_app alias_method :embedded_app?, :embedded_app # use the built in session routes? attr_accessor :routes # configure myshopify domain for local shopify development attr_accessor :myshopify_domain def routes_enabled? @routes end def initialize @routes = true @myshopify_domain = 'myshopify.com' end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield configuration end end
Version data entries
6 entries across 6 versions & 1 rubygems