Class: Highlight

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/highlight.rb

Instance Method Summary collapse

Instance Method Details

#disable!Object


12
13
14
# File 'app/models/highlight.rb', line 12

def disable!
  update_attributes! start_at: Time.now, end_at: Time.now
end

#disabled?Boolean


8
9
10
# File 'app/models/highlight.rb', line 8

def disabled?
  end_at <= Time.now
end