Run migration; add apple pay verification

This commit is contained in:
Michael Ball 2020-07-08 02:14:11 -07:00
parent 0e9d6b491b
commit d5f0063de6
3 changed files with 12 additions and 1 deletions

View file

@ -8,6 +8,7 @@ class ApplicationController < ActionController::Base
before_action :store_location
# Ensure every controller authorizes resource or skips authorization (skip_authorization_check)
check_authorization unless: :devise_controller?
skip_authorization_check if:
def store_location
# store last url - this is needed for post-login redirect to whatever the user last visited.
@ -65,4 +66,9 @@ class ApplicationController < ActionController::Base
def not_found
raise ActionController::RoutingError.new('Not Found')
end
skip_authorization_check only: :apple_pay
def apple_pay
render plain: ENV['OSEM_APPLE_PAY_ID']
end
end