Skip to content

Commit

Permalink
Fix for bug eyp#78 undefined method `order' for #Array:0x007f4694c18950
Browse files Browse the repository at this point in the history
Changed the line in spent_time_controller.rb that was giving the error:
undefined method `order' for #Array:0x007f4694c18950
when a user with permission to "view others spent time" tries to access
the Spent Time from menu.
  • Loading branch information
krisjaniz committed Sep 23, 2016
1 parent 5f6f64d commit aff54cc
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 aff54cc

Please sign in to comment.