Module: Admin::SettingsHelper
- Defined in:
- app/helpers/admin/settings_helper.rb
Instance Method Summary collapse
Instance Method Details
#setting_select_label(option) ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/helpers/admin/settings_helper.rb', line 10 def setting_select_label(option) if option.kind_of? Hash t option[:label] else option end end |
#setting_select_value(option) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/helpers/admin/settings_helper.rb', line 2 def setting_select_value(option) if option.kind_of? Hash option[:value] else option end end |