Modified: trunk/app/controllers/sessions_controller.rb (3750 => 3751)
--- trunk/app/controllers/sessions_controller.rb 2013-10-08 13:53:12 UTC (rev 3750)
+++ trunk/app/controllers/sessions_controller.rb 2013-10-08 13:56:42 UTC (rev 3751)
@@ -172,7 +172,10 @@
def successful_login(user)
# update "last seen" attribute
- user.update_attribute(:last_seen_at, Time.now)
+ begin
+ user.update_attribute(:last_seen_at, Time.now)
+ rescue
+ end
respond_to do |format|
flash[:notice] = "Logged in successfully. Welcome to #{Conf.sitename}!"
home_url = url_for(:controller => 'home')