Module ActionView::LookupContext::Details
In: lib/action_view/lookup_context.rb

Methods

Public Instance methods

Overload formats= to reject [:"*/*"] values.

Overload locale to return a symbol instead of array.

Overload locale= to also set the I18n.locale. If the current I18n.config object responds to i18n_config, it means that it‘s has a copy of the original I18n configuration and it‘s acting as proxy, which we need to skip.

Do not use the default locale on template lookup.

Update the details keys by merging the given hash into the current details hash. If a block is given, the details are modified just during the execution of the block and reverted to the previous value after.

A method which only uses the first format in the formats array for layout lookup. This method plays straight with instance variables for performance reasons.

Protected Instance methods

[Validate]