Skip to content

Commit

Permalink
don't show deleted clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 26, 2018
1 parent 3ae1170 commit 9c5301a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def set_include
end

def set_client
# params[:id] = params[:id][/.+?(?=\/)/]
@client = Client.where(symbol: params[:id]).where(deleted_at: nil).first
fail ActiveRecord::RecordNotFound unless @client.present?
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/data_centers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def set_include
end

def set_client
@client = Client.where(symbol: params[:id]).first
@client = Client.where(symbol: params[:id]).where(deleted_at: nil).first
fail ActiveRecord::RecordNotFound unless @client.present?
end
end

0 comments on commit 9c5301a

Please sign in to comment.