annotate extra/sample_plugin/app/models/meeting.rb @ 135:6a2f8e88344e
cannam-pre-20110113-merge
Bug #51: make New Member box show matching users only when at least 2 characters have been typed in search (avoid really long results lists)
author |
Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
date |
Wed, 19 Jan 2011 13:27:01 +0000 |
parents |
513646585e45 |
children |
433d4f72a19b |
rev |
line source |
Chris@0
|
1 class Meeting < ActiveRecord::Base
|
Chris@0
|
2 belongs_to :project
|
Chris@0
|
3
|
Chris@0
|
4 acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
|
Chris@0
|
5 :datetime => :scheduled_on,
|
Chris@0
|
6 :author => nil,
|
Chris@0
|
7 :url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
|
Chris@0
|
8
|
Chris@0
|
9 acts_as_activity_provider :timestamp => 'scheduled_on',
|
Chris@0
|
10 :find_options => { :include => :project }
|
Chris@0
|
11 end
|