Module: LanguageSelectRails::TagHelper

Included in:
ActionView::Helpers::LanguageSelectRails, ActionView::Helpers::Tags::LanguageSelectRails
Defined in:
lib/language_select_rails/tag_helper.rb

Instance Method Summary collapse

Instance Method Details

#language_option_tagsObject



5
6
7
8
9
10
11
12
# File 'lib/language_select_rails/tag_helper.rb', line 5

def language_option_tags
  option_tags_options = {
    selected: @options.fetch(:selected) { value(@object) },
    disabled: @options[:disabled]
  }

  options_for_select(language_options, option_tags_options)
end