Module: Jabysoft::AuthorisationService
- Included in:
- LinksHelper
- Defined in:
- app/services/jabysoft/authorisation_service.rb
Instance Method Summary collapse
Instance Method Details
#authorise_link(action, model:, style:, options:) ⇒ Object
3 4 5 6 7 8 |
# File 'app/services/jabysoft/authorisation_service.rb', line 3 def (action, model:, style:, options:) .reverse_merge!(class: style) = (action, model) if model.present? .merge!(class: style + " disabled ") unless return yield end |