Sha256: ff6cf5fd28c702c916932e3a5bd8e1f569df905e8f48c91aa6ef8ed18227080b

Contents?: true

Size: 437 Bytes

Versions: 13

Compression:

Stored size: 437 Bytes

Contents

require 'rails'

class ShopifyApp::Railtie < ::Rails::Railtie

  config.before_configuration do
    config.shopify = ShopifyApp.configuration
  end
  
  initializer "shopify_app.action_controller_integration" do
    ActionController::Base.send :include, ShopifyApp::LoginProtection
    ActionController::Base.send :helper_method, :current_shop
  end
  
  initializer "shopify_app.setup_session" do
    ShopifyApp.setup_session
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify_app-3.0.4 lib/shopify_app/railtie.rb
shopify_app-3.0.3 lib/shopify_app/railtie.rb
shopify_app-3.0.2 lib/shopify_app/railtie.rb
shopify_app-3.0.1 lib/shopify_app/railtie.rb
shopify_app-3.0.0 lib/shopify_app/railtie.rb
shopify_app-2.1.2 lib/shopify_app/railtie.rb
shopify_app-2.1.1 lib/shopify_app/railtie.rb
shopify_app-2.1.0 lib/shopify_app/railtie.rb
shopify_app-2.0.0 lib/shopify_app/railtie.rb
shopify_app-1.0.1 lib/shopify_app/railtie.rb
shopify_app-1.0.0 lib/shopify_app/railtie.rb
shopify_app-0.1.4 lib/shopify_app/railtie.rb
shopify_app-0.1.0 lib/shopify_app/railtie.rb