Please sign in to comment.
Do not generate local vars for partials without object or collection
Previously rendering a partial without giving :object or :collection would generate a local variable with the partial name by default. This was noticed due to warnings in Ruby 2.0 of not used variables, which turned out to be the generation of not used variables inside partials that do not contain objects related to them.
- Loading branch information...
Showing with 15 additions and 1 deletion.
|@@ -0,0 +1 @@|
|+<%= partial_name_local_variable %>|