module UnlockGateway::Controller::ClassMethods
Public Class Methods
extended(base)
click to toggle source
This will be executed first, to set the controller up. Then the instance methods will be included
# File lib/unlock_gateway/controller.rb, line 9 def self.extended(base) base.class_eval do before_action :set_contribution, only: %i[edit activate suspend] respond_to :html after_action :verify_authorized after_action :verify_policy_scoped, only: %i[] before_action :authenticate_user!, only: %i[edit] end end