lib/payanyway/controller.rb in payanyway-2.2.2 vs lib/payanyway/controller.rb in payanyway-2.3.0
- old
+ new
@@ -2,9 +2,14 @@
module Controller
extend ActiveSupport::Concern
included do
protect_from_forgery with: :null_session
+ if respond_to?(:skip_before_action)
+ skip_before_action :verify_authenticity_token
+ else
+ skip_before_filter :verify_authenticity_token
+ end
end
def pay
request = Payanyway::Request::Pay.new(permitted_params)
request.success? ?