Method: SlidayBackup::Model#sync_with
- Defined in:
- lib/sliday_backup/model.rb
#sync_with(name, syncer_id = nil, &block) ⇒ Object
Adds an Syncer. Multiple Syncers may be added to the model.
158 159 160 |
# File 'lib/sliday_backup/model.rb', line 158 def sync_with(name, syncer_id = nil, &block) @syncers << get_class_from_scope(Syncer, name).new(syncer_id, &block) end |