annotate .svn/pristine/cf/cfa3b42a480e62d585b5ac3b60b5eaa7a3df4427.svn-base @ 1169:492ff72268e3 bug_521

Close obsolete branch bug_521
author Chris Cannam
date Thu, 18 Oct 2012 10:42:48 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class Member < ActiveRecord::Base
Chris@909 2 generator_for :roles, :method => :generate_roles
Chris@909 3 generator_for :principal, :method => :generate_user
Chris@909 4
Chris@909 5 def self.generate_roles
Chris@909 6 [Role.generate!]
Chris@909 7 end
Chris@909 8
Chris@909 9 def self.generate_user
Chris@909 10 User.generate_with_protected!
Chris@909 11 end
Chris@909 12 end