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 b6893dc commit 02f5909
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 @@ -351,7 +351,7 @@ def archives
@board = Board.find_by_id(params[:board_id])
@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)
@publications = Publication.where(owner_id: @current_user.id, :owner_type => 'User', :creator_id => @current_user.id, :status => 'archived', :parent_id => nil).includes(:identifiers).order(updated_at: :desc)
end


Expand Down

0 comments on commit 02f5909

Please sign in to comment.