diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2015-01-27 09:46:54 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-01-27 09:46:54 +0300 |
commit | ededa98995208591c5792c0ece1a5ec0ef302127 (patch) | |
tree | 9003249572db72e2e13dda756ff03d325a92d2e0 /app/controllers/projects/services_controller.rb | |
parent | 0da59cb55bfc8b6bb50f45d0ccdb19edc8b0a6e9 (diff) |
Shorter check in services controller.
Diffstat (limited to 'app/controllers/projects/services_controller.rb')
-rw-r--r-- | app/controllers/projects/services_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/services_controller.rb b/app/controllers/projects/services_controller.rb index c7cc38b9c67..09bccb4bf8f 100644 --- a/app/controllers/projects/services_controller.rb +++ b/app/controllers/projects/services_controller.rb @@ -17,7 +17,7 @@ class Projects::ServicesController < Projects::ApplicationController def update if @service.update_attributes(service_params) - if @service.activated? && @service.category == :issue_tracker + if @service.activated? && @service.issue_tracker? @project.update_attributes(issues_tracker: @service.to_param) end redirect_to edit_project_service_path(@project, @service.to_param), |