Mercurial > hg > soundsoftware-site
view extra/sample_plugin/app/models/meeting.rb @ 1111:7d62d2f497c5 bibplugin_bibtex
adds all the necessary hidden fieds; associates authors, users and publications. Known issues associating publications, authors and users.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 07 Dec 2012 14:39:38 +0000 |
parents | 513646585e45 |
children | 433d4f72a19b |
line wrap: on
line source
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 } end