Method: Synced::Model#reset_synced
- Defined in:
- lib/synced/model.rb
#reset_synced ⇒ Object
Reset synced_all_at for given scope, this forces synced to sync all the records on the next sync. Useful for cases when you add a new column to be synced and you use updated since strategy for faster synchronization.
107 108 109 110 |
# File 'lib/synced/model.rb', line 107 def reset_synced return unless synced_only_updated update_all(synced_all_at_key => nil) end |