From bbfdf2df83c0469b0e4a84b76df072179fe1f0d6 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 20 Dec 2012 12:55:23 +0100 Subject: this is what += is there for --- users/app/models/local_email.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users') diff --git a/users/app/models/local_email.rb b/users/app/models/local_email.rb index c35fdf7..24624e7 100644 --- a/users/app/models/local_email.rb +++ b/users/app/models/local_email.rb @@ -37,7 +37,7 @@ class LocalEmail < Email end def add_domain_if_needed - self.email = self.email + "@" + APP_CONFIG[:domain] unless self.email.include?("@") + self.email += "@" + APP_CONFIG[:domain] unless self.email.include?("@") end end -- cgit v1.2.3