This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
update_details(new_details)
public
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.
# File actionpack/lib/action_view/lookup_context.rb, line 223
def update_details(new_details)
old_details = @details.dup
registered_detail_setters.each do |key, setter|
send(setter, new_details[key]) if new_details.key?(key)
end
begin
yield
ensure
@details_key = nil
@details = old_details
end
end