@@ -44,6 +44,8 class Changeset < ActiveRecord::Base | |||
|
44 | 44 | named_scope :visible, lambda {|*args| { :include => {:repository => :project}, |
|
45 | 45 | :conditions => Project.allowed_to_condition(args.shift || User.current, :view_changesets, *args) } } |
|
46 | 46 | |
|
47 | after_create :scan_for_issues | |
|
48 | ||
|
47 | 49 | def revision=(r) |
|
48 | 50 | write_attribute :revision, (r.nil? ? nil : r.to_s) |
|
49 | 51 | end |
@@ -86,7 +88,7 class Changeset < ActiveRecord::Base | |||
|
86 | 88 | self.user = repository.find_committer_user(self.committer) |
|
87 | 89 | end |
|
88 | 90 | |
|
89 | def after_create | |
|
91 | def scan_for_issues | |
|
90 | 92 | scan_comment_for_issue_ids |
|
91 | 93 | end |
|
92 | 94 |
General Comments 0
You need to be logged in to leave comments.
Login now