Module: SpreeCmCommissioner::Admin::PaymentsControllerDecorator

Defined in:
app/controllers/spree_cm_commissioner/admin/payments_controller_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



4
5
6
7
# File 'app/controllers/spree_cm_commissioner/admin/payments_controller_decorator.rb', line 4

def self.prepended(base)
  # spree call order.next on new which might set some data to database.
  base.around_action :set_writing_role, only: i[new]
end