Module | ActionView::LookupContext::Details |
In: |
lib/action_view/lookup_context.rb
|
cache | [RW] |
Overload formats= to expand ["*/*"] values and automatically add :html as fallback to :js.
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.