taskbar.rb 318 B

12345678910111213
  1. # Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
  2. class Taskbar < ApplicationModel
  3. store :state
  4. store :params
  5. before_create :update_last_contact
  6. before_update :update_last_contact
  7. private
  8. def update_last_contact
  9. self.last_contact = Time.now
  10. end
  11. end