Class: CanTango::PermitEngine::Executor::Base

Inherits:
Abstract
  • Object
show all
Defined in:
lib/cantango/permit_engine/executor/base.rb

Instance Attribute Summary

Attributes inherited from Abstract

#permit

Instance Method Summary collapse

Methods inherited from Abstract

#initialize, #permit?

Methods included from Helpers::Debug

#debug

Constructor Details

This class inherits a constructor from CanTango::PermitEngine::Executor::Abstract

Instance Method Details

#execute!Object

execute the permit



6
7
8
# File 'lib/cantango/permit_engine/executor/base.rb', line 6

def execute!
  valid_for?(subject) ? permit? : not_candidate_permit
end