From 06ad5d3055afc25a0f3d75aac99540404b05521c Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 29 Jul 2013 10:36:20 -0300 Subject: [PATCH] rails3: remove unecessary mass assignment --- app/models/contact_list.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/models/contact_list.rb b/app/models/contact_list.rb index 7fc42ca..54ccf59 100644 --- a/app/models/contact_list.rb +++ b/app/models/contact_list.rb @@ -16,12 +16,16 @@ class ContactList < ActiveRecord::Base def register_auth_error msg = _('There was an error while authenticating. Did you enter correct login and password?') - self.update_attributes(:fetched => true, :error_fetching => msg) + self.fetched = true + self.error_fetching = msg + self.save! end def register_error msg = _('There was an error while looking for your contact list. Please, try again') - self.update_attributes(:fetched => true, :error_fetching => msg) + self.fetched = true + self.error_fetching = msg + self.save! end end -- libgit2 0.21.2