Skip to content

Commit

Permalink
Fix some deprecated finders (see papyri#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfb committed Jan 26, 2021
1 parent 60082d4 commit 6913709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def usage_stats
end

def all_users_links
@users = User.find(:all, :order => "full_name ASC")
@users = User.order(full_name: :asc)
end

#Gets info for the current user in json format.
Expand Down Expand Up @@ -111,7 +111,7 @@ def developer
redirect_to dashboard_url
return
end
@boards = Board.find(:all)
@boards = Board.all
end


Expand Down
2 changes: 1 addition & 1 deletion app/views/cross_site/_user_tabs.haml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

- if @current_user

- end_communities = Community.find(:all, :conditions => {:end_user_id => @current_user.id} )
- end_communities = Community.where( :end_user_id => @current_user.id} )
- user_communities = @current_user.community_memberships
- all_communities = end_communities | user_communities

Expand Down

0 comments on commit 6913709

Please sign in to comment.