Disable confirmation email for guest user
This commit is contained in:
parent
e4cc6d543b
commit
c62b8d4d37
|
@ -31,6 +31,7 @@ module ApplicationHelper
|
|||
u = User.create(:name => "guest", :email => "guest_#{Time.now.to_i}#{rand(99)}@example.com")
|
||||
end
|
||||
u.admin = false
|
||||
u.skip_confirmation!
|
||||
u.save(:validate => false)
|
||||
u
|
||||
end
|
||||
|
|
Reference in New Issue