Method: Strongbolt::BoltedController::ClassMethods#skip_controller_authorization

Defined in:
lib/strongbolt/bolted_controller.rb

#skip_controller_authorization(opts = {}) ⇒ Object

Skips controller authorization check for this controller No argument given will skip for all actions, and can be passed only: [] or except: []



64
65
66
67
# File 'lib/strongbolt/bolted_controller.rb', line 64

def skip_controller_authorization(opts = {})
  opts = { raise: false }.merge(opts) if Rails::VERSION::MAJOR >= 5
  skip_before_action :check_authorization, opts
end