Improved code layout.
This commit is contained in:
parent
19079731cb
commit
886a249aee
1 changed files with 6 additions and 7 deletions
|
@ -1,11 +1,10 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue