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
|
class Taskbar < ApplicationModel
|
||||||
|
store :state
|
||||||
|
store :params
|
||||||
|
before_create :update_last_contact
|
||||||
|
before_update :update_last_contact
|
||||||
|
|
||||||
store :state
|
private
|
||||||
store :params
|
|
||||||
before_create :update_last_contact
|
|
||||||
before_update :update_last_contact
|
|
||||||
|
|
||||||
private
|
|
||||||
def update_last_contact
|
def update_last_contact
|
||||||
self.last_contact = Time.now
|
self.last_contact = Time.now
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue