maybe the instantiate method will help

This commit is contained in:
ilya 2010-08-18 21:51:51 -07:00
parent 0f6ec71dcd
commit 0a3277d306

View file

@ -297,7 +297,12 @@ class User
end
###Helpers############
def self.instantiate( opts = {} )
opts[:person][:email] = opts[:email]
opts[:person][:serialized_key] = generate_key
User.create( opts)
end
def terse_url
terse= self.url.gsub(/https?:\/\//, '')
terse.gsub!(/www\./, '')