Module: Backend::DropdownHelper
- Defined in:
- app/helpers/backend/dropdown_helper.rb
Instance Method Summary collapse
Instance Method Details
#options_for_column_widths ⇒ Object
9 10 11 12 13 |
# File 'app/helpers/backend/dropdown_helper.rb', line 9 def (1..12).to_a.reverse.map do |i| ["#{i}/12", i] end end |
#options_for_content_types ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/backend/dropdown_helper.rb', line 3 def Udongo.config.flexible_content.types.map do |content_type| [I18n.t("b.msg.content_types.#{content_type}"), "Content#{content_type.to_s.camelcase}"] end end |