From 886a249aee3e6887b8a994f553357a04fc1cae7b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sat, 1 Jun 2013 01:10:40 +0200 Subject: [PATCH] Improved code layout. --- app/models/taskbar.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/models/taskbar.rb b/app/models/taskbar.rb index 9fca405a1..48a41813e 100644 --- a/app/models/taskbar.rb +++ b/app/models/taskbar.rb @@ -1,12 +1,11 @@ class Taskbar < ApplicationModel + store :state + store :params + before_create :update_last_contact + before_update :update_last_contact -store :state -store :params -before_create :update_last_contact -before_update :update_last_contact - -private + private def update_last_contact self.last_contact = Time.now end -end \ No newline at end of file +end