repo.or.cz
/
kwestie.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
suck it! one down, lots to go.
[kwestie.git]
/
app
/
models
/
issue_observer.rb
blob
b27bb5891f86a685b002944ae47874f6fa075cdb
1
class IssueObserver < ActiveRecord::Observer
2
3
def after_create(issue)
4
issue.permalink = Permalink.create( { :link_name => issue.title, :issue_id => issue.id } )
5
issue.save
6
IssueMailer.deliver_issue_create(issue)
7
end
8
9
end