Sha256: c3fa579b54d12b6f04b638290e01c43db9530fa6a1072612cce9b3fb4dbcd2a5

Contents?: true

Size: 538 Bytes

Versions: 10

Compression:

Stored size: 538 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  # It will re-login if a user tries to access the application from a different shop
  # before_filter :login_again_if_different_shop
  
  # Ask shop to authorize app again if additional permissions are required
  # rescue_from ActiveResource::ForbiddenAccess do
  #   session[:shopify] = nil
  #   flash[:notice] = "This app requires additional permissions, please log in and authorize it."
  #   redirect_to controller: :sessions, action: :create
  # end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
shopify_app-5.0.2 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-5.0.1 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app_lrb3-5.0.0 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-5.0.0 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.6 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.5 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.4 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.2 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.1 lib/generators/shopify_app/templates/app/controllers/application_controller.rb
shopify_app-4.4.0 lib/generators/shopify_app/templates/app/controllers/application_controller.rb