module Autochthon::Backend::FetchingAll
Public Instance Methods
all(locales = available_locales)
click to toggle source
# File lib/autochthon/backend/fetching_all.rb, line 6 def all(locales = available_locales) locales.inject([]) do |out, locale| flatten_keys(all_for_locale(locale), false) do |key, value| out << {key: key, value: value, locale: locale} end out end end
all_for_locale(locale)
click to toggle source
# File lib/autochthon/backend/fetching_all.rb, line 15 def all_for_locale(locale) raise NotImplementedError end