class Autochthon::Backend::ActiveRecord
Public Instance Methods
all_for_locale(locale)
click to toggle source
# File lib/autochthon/backend/active_record.rb, line 13 def all_for_locale(locale) Hash[I18n::Backend::ActiveRecord::Translation .where(locale: locale) .pluck(:key, :value)] end