diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-05 18:38:42 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-05 18:38:42 +0000 |
commit | 8509cf80f009436e900294acc821295f21e3b142 (patch) | |
tree | 37095d100c500b27cb2249dc3b7ece1198434637 /app/models/journal.rb | |
parent | 26a1ae4808368128f2cc8b348528506f358dab15 (diff) | |
download | redmine-8509cf80f009436e900294acc821295f21e3b142.tar.gz redmine-8509cf80f009436e900294acc821295f21e3b142.zip |
ProjectsController#list_issues, #export_issues_csv and #export_issues_pdf merged into IssuesController#index
git-svn-id: http://redmine.rubyforge.org/svn/trunk@887 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index a68988a7b..331d7a729 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -29,6 +29,10 @@ class Journal < ActiveRecord::Base :project_key => "#{Issue.table_name}.project_id", :date_column => "#{Issue.table_name}.created_on" + acts_as_event :title => Proc.new {|o| "#{o.issue.tracker.name} ##{o.issue.id}: #{o.issue.subject}"}, + :description => :notes, + :url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.issue.id}} + def save # Do not save an empty journal (details.empty? && notes.blank?) ? false : super |