app/controllers/rosetta/locales/translations_controller.rb in rosetta-rails-0.1.1 vs app/controllers/rosetta/locales/translations_controller.rb in rosetta-rails-0.2.0
- old
+ new
@@ -1,17 +1,17 @@
module Rosetta
class Locales::TranslationsController < ApplicationController
include LocaleScoped
def index
- @pagy, @translation_keys = pagy(scope)
+ @pagy, @text_entries = pagy(scope)
render "rosetta/locales/translations/index"
end
private
def scope
- TranslationKey.includes(:translation_in_current_locale)
+ TextEntry.with_translated_version(@locale).where(locale: Locale.default_locale)
end
end
end