view test/exemplars/watcher_exemplar.rb @ 466:a7dc708d48a1 feature_36

Created the one-to-one relationship between bibliography authors and users.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 22 Jun 2011 13:10:59 +0100
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