Skip to content

Commit

Permalink
Merge pull request #220 from tosdr/fix/removing-delete-service-option
Browse files Browse the repository at this point in the history
Fix/removing delete service option
  • Loading branch information
piks3l authored Jan 2, 2018
2 parents b713ee1 + ebb78ac commit e0a2961
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/services_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def create
end

def show
# @service.points = Point.where(service_id: @service)
@points = @service.points
@points = @points.where(status: 'approved')

Expand All @@ -40,7 +39,6 @@ def update
end

def destroy
# @service.points = Point.where(service_id: @service)
if @service.points.any?
flash[:alert] = "Users have contributed valuable insight to this service!"
redirect_to service_path(@service)
Expand Down

0 comments on commit e0a2961

Please sign in to comment.