Skip to content

Commit

Permalink
Merge pull request #96 from krisjaniz/user-sort-bug-78
Browse files Browse the repository at this point in the history
Fix for bug #78 undefined method `order' for #Array:0x007f4694c18950
  • Loading branch information
eyp committed Aug 5, 2017
2 parents 495dfaa + aff54cc commit 8a1f56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spent_time_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def index
projects = User.current.projects
projects.each { |project| @users.concat(project.users) }
@users.uniq!
@users.order(:firstname)
@users.sort!
else
@users = [@user]
end
Expand Down

0 comments on commit 8a1f56c

Please sign in to comment.