Module: Law::Laws::Judgements
- Extended by:
- ActiveSupport::Concern
- Included in:
- Law::LawBase
- Defined in:
- lib/law/laws/judgements.rb
Instance Method Summary collapse
- #authorize(action) ⇒ Object
- #authorize!(action) ⇒ Object
- #authorized?(action) ⇒ Boolean
- #judgement(action) ⇒ Object
Instance Method Details
#authorize(action) ⇒ Object
23 24 25 |
# File 'lib/law/laws/judgements.rb', line 23 def (action) judgement(action).tap(&:judge) end |
#authorize!(action) ⇒ Object
27 28 29 |
# File 'lib/law/laws/judgements.rb', line 27 def (action) judgement(action).tap(&:judge!) end |
#authorized?(action) ⇒ Boolean
31 32 33 |
# File 'lib/law/laws/judgements.rb', line 31 def (action) judgement(action).judge end |