Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from newsdev/feature/user-name-sort
Browse files Browse the repository at this point in the history
user names now sorted by full_name
  • Loading branch information
jeremybmerrill authored Apr 26, 2017
2 parents aee1c81 + e29baa8 commit d703924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def show
# GET /pages/new
def new
@page = Page.new
@users = User.all
@users = User.all.sort_by { |obj| (obj.display_name.nil? ? 0 : obj.display_name.downcase) }
@slack_integrations = SlackIntegration.all
end

# GET /pages/1/edit
def edit
@users = User.all
@users = User.all.sort_by { |obj| (obj.display_name.nil? ? 0 : obj.display_name.downcase) }
@slack_integrations = SlackIntegration.all
end

Expand Down

0 comments on commit d703924

Please sign in to comment.