mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
remove use of .all on model
This commit is contained in:
parent
1234abb266
commit
54b106d96b
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class User < ActiveRecord::Base
|
|||
todos_in_project.reject{ |p| p.todos.active.count > 0 }
|
||||
sorted_project_ids = todos_in_project.map {|p| p.id}
|
||||
|
||||
all_project_ids = all.map {|p| p.id}
|
||||
all_project_ids = self.map {|p| p.id}
|
||||
other_project_ids = all_project_ids - sorted_project_ids
|
||||
|
||||
update_positions(sorted_project_ids + other_project_ids)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue