hicknhack-software/redmine_hourglass

View on GitHub
app/models/concerns/hourglass/project_issue_syncing.rb

Summary

Maintainability
A
0 mins
Test Coverage
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