git-subtree-dir: plugins/redmine_hourglass git-subtree-split: ec937a4ed4717e358207dd3857fac248b9e625e9
12 lines
228 B
Ruby
12 lines
228 B
Ruby
module Hourglass::ProjectIssueSyncing
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
before_save :sync_issue_and_project
|
|
end
|
|
|
|
def sync_issue_and_project
|
|
self.project_id = issue.project_id if issue.present?
|
|
end
|
|
end
|