Sha256: ca5f3e3c3906c9ebfda45203f2c9a10220f8c7f06c2396d96d845060f7eb92f3

Contents?: true

Size: 598 Bytes

Versions: 30

Compression:

Stored size: 598 Bytes

Contents

module ReactiveRecord
  # The base collection class works with relationships
  # method overrides for the unscoped collection
  module UnscopedCollection
    def set_pre_sync_related_records(related_records, _record = nil)
      @pre_sync_related_records = related_records
      live_scopes.each { |scope| scope.set_pre_sync_related_records(@pre_sync_related_records) }
    end

    def sync_scopes(related_records, record, filtering = true)
      live_scopes.each { |scope| scope.sync_scopes(related_records, record, filtering) }
    ensure
      @pre_sync_related_records = nil
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
hyper-model-1.0.alpha1.8 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.7 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.6 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.5 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.4 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.6 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.3 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.5 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.4 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.2 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1.1 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-1.0.alpha1 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.3 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.2 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.1 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-model-0.99.0 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-mesh-1.0.0.lap28 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-mesh-1.0.0.lap27 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-mesh-1.0.0.lap26 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb
hyper-mesh-1.0.0.lap25 lib/reactive_record/active_record/reactive_record/unscoped_collection.rb