Mercurial > hg > soundsoftware-site
view test/exemplars/comment_exemplar.rb @ 815:4d3ac2b4156c luisf
Strips any possible html tags in the project tags input (both client and server side).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 23 Nov 2011 16:10:03 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class Comment < ActiveRecord::Base generator_for :commented, :method => :generate_news generator_for :author, :method => :generate_author generator_for :comments => 'What great news this is.' def self.generate_news News.generate! end def self.generate_author User.generate_with_protected! end end