Class: Pelita::Operation::Base
- Includes:
- Dry::Transaction
- Defined in:
- lib/pelita/operation/base.rb
Instance Method Summary collapse
Instance Method Details
#authorize!(options) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/pelita/operation/base.rb', line 8 def () if ["current_user"].signed_in? ["result.policy.default"] = true Right() else ["result.policy.default"] = false Left() end end |