Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way of assigning template variables
`ActionView::Base#assign` method removes all previous view variable assignments from ActionView::Base `assigns` hash if there are any. For example: template.assigns # => {page_title: "Awesome Title"} template.assign(has_many_block: true) # this will clear the `assigns` hash template.assigns # => {has_many_block: true} This commit changes the way of assigning template variables, to avoid previously assigned values loss: template.assigns[:has_many_block] = true
- Loading branch information