Sha256: fc8ff00bc59556be53a6955625ec572bb1a021f0a1c29a8f6d5b417f5c55ad6f

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

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