|
|
|
@ -1,7 +1,15 @@ |
|
|
|
|
class MeetingAgenda < MeetingContent |
|
|
|
|
unloadable |
|
|
|
|
|
|
|
|
|
acts_as_journalized :activity_type => 'meetings' |
|
|
|
|
acts_as_journalized :activity_type => 'meetings', |
|
|
|
|
:activity_permission => :view_meetings, |
|
|
|
|
:activity_find_options => {:include => {:meeting => :project}}, |
|
|
|
|
:event_title => Proc.new {|o| "#{l :label_meeting_agenda}: #{o.meeting.title}"}, |
|
|
|
|
:event_url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.meeting}} |
|
|
|
|
|
|
|
|
|
def activity_type |
|
|
|
|
'meetings' |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
# TODO: internationalize the comments |
|
|
|
|
def lock!(user = User.current) |
|
|
|
@ -17,6 +25,8 @@ class MeetingAgenda < MeetingContent |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
MeetingAgendaJournal.class_eval do |
|
|
|
|
unloadable |
|
|
|
|
|
|
|
|
|
attr_protected :data |
|
|
|
|
after_save :compress_version_text |
|
|
|
|
|
|
|
|
|