Skip to content

Commit e0a2961

Browse files
author
piks3l
authored
Merge pull request #220 from tosdr/fix/removing-delete-service-option
Fix/removing delete service option
2 parents b713ee1 + ebb78ac commit e0a2961

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/controllers/services_controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def create
2222
end
2323

2424
def show
25-
# @service.points = Point.where(service_id: @service)
2625
@points = @service.points
2726
@points = @points.where(status: 'approved')
2827

@@ -40,7 +39,6 @@ def update
4039
end
4140

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

0 commit comments

Comments
 (0)