2009-10-19 02:25:00 +04:00
|
|
|
class Member < ActiveRecord::Base
|
2010-01-28 22:05:21 +03:00
|
|
|
generator_for :roles, :method => :generate_roles
|
|
|
|
generator_for :principal, :method => :generate_user
|
|
|
|
|
|
|
|
def self.generate_roles
|
|
|
|
[Role.generate!]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.generate_user
|
|
|
|
User.generate_with_protected!
|
|
|
|
end
|
2009-10-19 02:25:00 +04:00
|
|
|
end
|