Fixes failing tests by changing user model

This commit is contained in:
mokus 2013-07-05 13:52:10 +02:00 committed by Jonne Haß
parent 143a970e61
commit 3ba63197e8

View file

@ -64,7 +64,6 @@ class User < ActiveRecord::Base
has_many :notifications, :foreign_key => :recipient_id
before_save :guard_unconfirmed_email,
:save_person!
@ -342,7 +341,7 @@ class User < ActiveRecord::Base
###Helpers############
def self.build(opts = {})
u = User.new(opts)
u = User.new(opts.except(:person))
u.setup(opts)
u
end