Shorter check in services controller.
This commit is contained in:
parent
0da59cb55b
commit
ededa98995
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue