Make IssueObserver handle issus, not MailerObserver
This commit is contained in:
parent
356430c3c0
commit
6617eaaf9b
6 changed files with 64 additions and 21 deletions
|
@ -68,6 +68,10 @@ class Issue < ActiveRecord::Base
|
|||
def is_being_closed?
|
||||
closed_changed? && closed
|
||||
end
|
||||
|
||||
def is_being_reopened?
|
||||
closed_changed? && !closed
|
||||
end
|
||||
end
|
||||
# == Schema Information
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue