Sha256: 0a90a57860ad5c36456ca474c10ea5fd43853f86e9b7ab9d39f412d37a7dfb29

Contents?: true

Size: 346 Bytes

Versions: 13

Compression:

Stored size: 346 Bytes

Contents

module Voluntary
  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
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
voluntary-0.7.1 app/helpers/voluntary/language_helper.rb
voluntary-0.7.0 app/helpers/voluntary/language_helper.rb
voluntary-0.6.0 app/helpers/voluntary/language_helper.rb
voluntary-0.5.2 app/helpers/voluntary/language_helper.rb
voluntary-0.5.1 app/helpers/voluntary/language_helper.rb
voluntary-0.5.0 app/helpers/voluntary/language_helper.rb
voluntary-0.4.0 app/helpers/voluntary/language_helper.rb
voluntary-0.3.0 app/helpers/voluntary/language_helper.rb
voluntary-0.2.4 app/helpers/voluntary/language_helper.rb
voluntary-0.2.3 app/helpers/voluntary/language_helper.rb
voluntary-0.2.2 app/helpers/voluntary/language_helper.rb
voluntary-0.2.1 app/helpers/voluntary/language_helper.rb
voluntary-0.2.0 app/helpers/voluntary/language_helper.rb