app/controllers/taxa_controller.rb
# Defines base variables for use in scoped i18n calls, used by meta tag helper methods (also see
# ApplicationController for #super)
Defines base variables for use in scoped i18n calls, used by meta tag helper methods (also see
ApplicationController for #super)
Defines base variables for use in scoped i18n calls used by meta tag helper methods ( also see ApplicationController for #super )
def scoped_variables_for_translations
    @scoped_variables_for_translations ||= super.dup.merge({
      preferred_common_name: @preferred_common_name.presence,
      scientific_name: @scientific_name.presence,
      hierarchy_provider: @taxon_page.hierarchy_provider,
    }).freeze
  end
def scoped_variables_for_translations @scoped_variables_for_translations ||= super . dup . merge ( { preferred_common_name : @preferred_common_name . presence , scientific_name : @scientific_name . presence , hierarchy_provider : @taxon_page . hierarchy_provider , } ) . freeze end
Defines base variables for use in scoped i18n calls, used by meta tag helper methods (also see
ApplicationController for #super)
Defines base variables for use in scoped i18n calls used by meta tag helper methods ( also see ApplicationController for #super )