Mercurial > hg > soundsoftware-site
view .svn/pristine/ac/ac26075ed3d7e3fbdfe96b667d5f07f279649046.svn-base @ 1539:22d57b0e0a77 live
OK, this script works now, but it should be using the API
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 21 May 2015 17:31:06 +0100 |
parents | 038ba2d95de8 |
children |
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