app/controllers/effective/providers/moneris.rb in effective_orders-2.1.15 vs app/controllers/effective/providers/moneris.rb in effective_orders-2.1.16
- old
+ new
@@ -2,10 +2,14 @@
module Providers
module Moneris
extend ActiveSupport::Concern
included do
- prepend_before_filter :find_authenticity_token_from_moneris, only: [:moneris_postback]
+ if respond_to?(:prepend_before_action)
+ prepend_before_action :find_authenticity_token_from_moneris, only: [:moneris_postback]
+ else
+ prepend_before_filter :find_authenticity_token_from_moneris, only: [:moneris_postback]
+ end
end
def moneris_postback
@order ||= Effective::Order.find(params[:response_order_id])