Sha256: 2f65a559c4de7418497500a05458da38aaa0ddc631ed1c1a441951ae2695aeb9
Contents?: true
Size: 351 Bytes
Versions: 2
Compression:
Stored size: 351 Bytes
Contents
module Rosetta class Locales::TranslationsController < ApplicationController include LocaleScoped def index @pagy, @text_entries = pagy(scope) render "rosetta/locales/translations/index" end private def scope TextEntry.with_translated_version(@locale).where(locale: Locale.default_locale) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rosetta-rails-0.2.1 | app/controllers/rosetta/locales/translations_controller.rb |
rosetta-rails-0.2.0 | app/controllers/rosetta/locales/translations_controller.rb |