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