Module: UserAbilitiesHelper
- Defined in:
- app/helpers/user_abilities_helper.rb
Instance Method Summary collapse
- #abilities_id_checkbox(module_, ability) ⇒ Object
- #abilities_name_checkbox(module_, ability) ⇒ Object
Instance Method Details
#abilities_id_checkbox(module_, ability) ⇒ Object
8 9 10 |
# File 'app/helpers/user_abilities_helper.rb', line 8 def abilities_id_checkbox(module_, ability) "module_%d_%d" % [module_.id, ability.id] end |
#abilities_name_checkbox(module_, ability) ⇒ Object
4 5 6 |
# File 'app/helpers/user_abilities_helper.rb', line 4 def abilities_name_checkbox(module_, ability) "module[%d][%d]" % [module_.id, ability.id] end |