Class: Synced::Timestamp
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Synced::Timestamp
- Defined in:
- lib/synced/timestamp.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.cleanup ⇒ Object
22 23 24 |
# File 'lib/synced/timestamp.rb', line 22 def self.cleanup old.delete_all end |
.last_synced_at ⇒ Object
18 19 20 |
# File 'lib/synced/timestamp.rb', line 18 def self.last_synced_at maximum(:synced_at) end |
Instance Method Details
#model_class=(value) ⇒ Object
14 15 16 |
# File 'lib/synced/timestamp.rb', line 14 def model_class=(value) write_attribute(:model_class, value.to_s) end |