mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-11 23:22:36 +01:00
Remove a useless variable assignment
We can shortcut the assignment that was in the partial by naming the object directly.
This commit is contained in:
parent
09a380a475
commit
eb5c2484a9
3 changed files with 2 additions and 6 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<a title="<%= t('shared.toggle_multi_title') %>" accesskey="m" href="#" id="toggle_multi"><%= t('shared.toggle_multi') %></a>
|
||||
</div>
|
||||
|
||||
<%= render :partial => 'todos/new_todo_form', :object => Todo.new %>
|
||||
<%= render :partial => 'todos/new_multi_todo_form', :object => Todo.new %>
|
||||
<%= render :partial => 'todos/new_todo_form', :locals => {todo: Todo.new} %>
|
||||
<%= render :partial => 'todos/new_multi_todo_form', :locals => {todo: Todo.new} %>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue