Sha256: 442270d59ca3b817a6fcf95ce3819d631aaaefa47abea0c4434ce8a95d8a156c
Contents?: true
Size: 480 Bytes
Versions: 10
Compression:
Stored size: 480 Bytes
Contents
module AssetManager module Translations def self.included(base) base.class_eval do scope :sorted_by_translated, lambda { |field| with_translations(Globalize.fallbacks).order(translations_table_name + '.' + field.to_s) } end end def translations_for_locales(locales) translations_for = [] locales.map do |locale| translations_for << translation_for(locale) end translations_for end end end
Version data entries
10 entries across 10 versions & 1 rubygems