Method: Spider::Model::Synchronized::ClassMethods#synchronization
- Defined in:
- lib/spiderfw/model/mixins/synchronized.rb
#synchronization(name) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/spiderfw/model/mixins/synchronized.rb', line 67 def synchronization(name) @synchronizations ||= [] @synchronizations << name self.primary_keys.each do |k| element(synchronization_key(name, k), k.type) if k.autogenerated? && !k.attributes[:no_sync_map] end end |