Module: ActiveEntry::ControllerConcern

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/active_entry/concern.rb

Instance Method Summary collapse

Instance Method Details

#authenticate!(**args) ⇒ Object



41
42
43
44
# File 'app/controllers/concerns/active_entry/concern.rb', line 41

def authenticate! **args
  policy_class::Authentication.pass! action_name, **args unless @__authentication_done
  @__authentication_done = true
end

#authorize!(**args) ⇒ Object



46
47
48
49
# File 'app/controllers/concerns/active_entry/concern.rb', line 46

def authorize! **args
  policy_class::Authorization.pass! action_name, **args unless @__authorization_done
  @__authorization_done = true
end

#pass!(**args) ⇒ Object



36
37
38
39
# File 'app/controllers/concerns/active_entry/concern.rb', line 36

def pass! **args
  authenticate! **args
  authorize! **args
end