Mercurial > hg > soundsoftware-site
view test/exemplars/board_exemplar.rb @ 1021:967fb7e62b1d browsing
Include only public projects in busy institutions / projects queries, so results can be cached (the tag cloud was already public projects only). Introduce tentatively some cacheing thingies
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 13 Nov 2012 10:35:23 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class Board < ActiveRecord::Base generator_for :name, :start => 'A Forum' generator_for :description, :start => 'Some description here' generator_for :project, :method => :generate_project def self.generate_project Project.generate! end end