Method: Strongbolt::BoltedController::InstanceMethods#render_without_authorization?

Defined in:
lib/strongbolt/bolted_controller.rb

#render_without_authorization?Boolean

Checks if the current action needs verification

Returns:

  • (Boolean)


149
150
151
152
# File 'lib/strongbolt/bolted_controller.rb', line 149

def render_without_authorization?
  self.class.actions_without_authorization.present? &&
    self.class.actions_without_authorization.include?(params[:action].to_sym)
end