Module: Isaca::Rails::ClaimsHelper
- Defined in:
- app/helpers/isaca/rails/claims_helper.rb
Instance Method Summary collapse
Instance Method Details
#claim_checkbox(form, administrator, privilege) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/helpers/isaca/rails/claims_helper.rb', line 4 def claim_checkbox(form, administrator, privilege) content_tag(:div, class: 'form-group') do concat form.check_box(privilege, {checked: user_has_privilege?(administrator, privilege), id: "claims_#{privilege}_#{administrator.id}"}) concat form.label(privilege, privilege, value: administrator.id) end end |