Files
Redmine/extra/sample_plugin/app/models/meeting.rb
Jean-Philippe Lang 2277f61046 Added missing :permission option in sample plugin.
git-svn-id: http://svn.redmine.org/redmine/trunk@14031 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-18 21:11:37 +00:00

13 lines
471 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 => includes(:project),
:permission => nil
end