Class: I18n::Analyzer::AnalyzersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/i18n/analyzer/analyzers_controller.rb

Instance Method Summary collapse

Instance Method Details

#index ⇒ Object



4
5
6
7
8
# File 'app/controllers/i18n/analyzer/analyzers_controller.rb', line 4

def index
  Rails.application.eager_load! if Rails.env.development?
  @languages = I18n.available_locales.present? ? I18n.available_locales : [ :en, :de ]
  @models = ApplicationRecord.descendants
end