Commit a37846de authored by Daniel Diniz's avatar Daniel Diniz

Fix update_attribute function parameters syntax

Inherited function "update_attribute", while in the
project->jira_service context, has signature: (:attribute, value) and
not (attribute: value).
parent 0c30a68b
...@@ -288,7 +288,7 @@ To change all Jira project to use the instance-level integration settings: ...@@ -288,7 +288,7 @@ To change all Jira project to use the instance-level integration settings:
```ruby ```ruby
jira_service_instance_id = JiraService.find_by(instance: true).id jira_service_instance_id = JiraService.find_by(instance: true).id
JiraService.where(active: true, instance: false, template: false, inherit_from_id: nil).find_each do |service| JiraService.where(active: true, instance: false, template: false, inherit_from_id: nil).find_each do |service|
service.update_attribute(inherit_from_id: jira_service_instance_id) service.update_attribute(:inherit_from_id, jira_service_instance_id)
end end
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment