view test/exemplars/watcher_exemplar.rb @ 155:1ca23eedd587 feature_20

* More helpful names for the project modules -- especially the Embedded module
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 27 Jan 2011 11:04:34 +0000
parents 513646585e45
children
line wrap: on
line source
class Watcher < ActiveRecord::Base
  generator_for :user, :method => :generate_user

  def self.generate_user
    User.generate_with_protected!
  end
end