Module: Signum::ActiveRecordHelpers::InstanceMethods

Defined in:
lib/signum/active_record_helpers.rb

Instance Method Summary collapse

Instance Method Details

#appeared!Object



28
29
30
# File 'lib/signum/active_record_helpers.rb', line 28

def appeared!
  update(presence: "appeared")
end

#away!Object



32
33
34
# File 'lib/signum/active_record_helpers.rb', line 32

def away!
  update(presence: "away")
end

#offline!Object



24
25
26
# File 'lib/signum/active_record_helpers.rb', line 24

def offline!
  update(presence: "offline")
end

#online!Object



20
21
22
# File 'lib/signum/active_record_helpers.rb', line 20

def online!
  update(presence: "online")
end