1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00
Go MAEDA 894bb2f289 Fix that Example plugin (extra/sample_plugin) breaks Activity page (#38114).
Patch by Karel Pičman.


git-svn-id: https://svn.redmine.org/redmine/trunk@22079 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-27 04:04:20 +00:00

13 lines
477 B
Ruby

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',
:scope => proc { joins(:project) },
:permission => nil
end