Skip to content

Commit

Permalink
Fix erroneous/deprecated syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfb committed Jan 26, 2021
1 parent a23ec4b commit b6893dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def board_dashboard
def archives
if params[:board_id]
@board = Board.find_by_id(params[:board_id])
@publications = @board.publications.find( :all, :status => 'archived' }, :include => :identifiers.order(updated_at: :desc)
@publications = @board.publications.where(:status => 'archived').includes(:identifiers).order(updated_at: :desc)
else
@publications = Publication.where(owner_id: @current_user.id, :owner_type => 'User', :creator_id => @current_user.id, :status => 'archived', :parent_id => nil }, :include => :identifiers.order(updated_at: :desc)
end
Expand Down

0 comments on commit b6893dc

Please sign in to comment.