Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
12
extra/sample_plugin/app/models/meeting.rb
Normal file
12
extra/sample_plugin/app/models/meeting.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
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 => includes(:project),
|
||||
:permission => nil
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue