Sha256: 3bdb0dfe5211b5736ef23955999139d29ecd47da93f8d3455377ebede5cf5dfc

Contents?: true

Size: 295 Bytes

Versions: 8

Compression:

Stored size: 295 Bytes

Contents

module LanguageHelper
  def available_language_options
    options = []
    
    AVAILABLE_LANGUAGES.each do |locale, language|
      options << [language, locale]
    end
    
    options.sort_by { |o| o[0] }
  end
  
  def all_language_options
    User.languages.sort_by { |o| o[0] }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/helpers/language_helper.rb
voluntary-0.1.0.rc4 app/helpers/language_helper.rb
voluntary-0.1.0.rc3 app/helpers/language_helper.rb
voluntary-0.1.0.rc2 app/helpers/language_helper.rb
voluntary-0.1.0.rc1 app/helpers/language_helper.rb
voluntary-0.0.3 app/helpers/language_helper.rb
voluntary-0.0.2 app/helpers/language_helper.rb
voluntary-0.0.1 app/helpers/language_helper.rb