Sha256: 66d2e267beea738f7f6638dac75f53cd6d35fa49ab6f709b44ced52358236a4c

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

module Meta2
  module ApplicationHelper
    def options_of_section_from_meta2_settings_for_select(form)
      options = I18n.t('meta2.setting.sections').to_hash.invert
      options_for_select options, selected: form.object.section.to_s
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meta2-0.0.3 app/helpers/meta2/application_helper.rb
meta2-0.0.2 app/helpers/meta2/application_helper.rb