Module: Bulky::FormHelper
- Defined in:
- app/helpers/bulky/form_helper.rb
Instance Method Summary collapse
Instance Method Details
#whitelisted_attributes_collection(model) ⇒ Object
4 5 6 |
# File 'app/helpers/bulky/form_helper.rb', line 4 def whitelisted_attributes_collection(model) model.accessible_attributes.select(&:present?).map {|a| [a.titleize, a]} end |