summaryrefslogtreecommitdiffstats
path: root/extra/sample_plugin
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-27 19:18:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-27 19:18:35 +0000
commitb20281f1515675813ade9e1284c39fd00d261365 (patch)
tree1208353492d4f5d2b28d074b0cacc9207bffcd03 /extra/sample_plugin
parent3a4855d070c6305a587afd31c9814cfdf479c66b (diff)
downloadredmine-b20281f1515675813ade9e1284c39fd00d261365.tar.gz
redmine-b20281f1515675813ade9e1284c39fd00d261365.zip
Follows r1703.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1704 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/sample_plugin')
-rw-r--r--extra/sample_plugin/app/models/meeting.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/extra/sample_plugin/app/models/meeting.rb b/extra/sample_plugin/app/models/meeting.rb
index 89ecd5253..c1bb64a93 100644
--- a/extra/sample_plugin/app/models/meeting.rb
+++ b/extra/sample_plugin/app/models/meeting.rb
@@ -1,5 +1,10 @@
class Meeting < ActiveRecord::Base
belongs_to :project
+
+ acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
+ :datetime => :scheduled_on,
+ :author => nil,
+ :url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
acts_as_activity_provider :timestamp => 'scheduled_on',
:find_options => { :include => :project }