Sha256: 65f750438626b0151893c8578a5d8d012d1ca10f950308b6abe4c3d8a04d8deb

Contents?: true

Size: 343 Bytes

Versions: 25

Compression:

Stored size: 343 Bytes

Contents

module Elastics
  module ModelSyncer

    def self.included(base)
      base.class_eval do
        @elastics ||= ClassProxy::Base.new(base)
        @elastics.extend(ClassProxy::ModelSyncer)
        def self.elastics; @elastics end
      end
    end

    def elastics
      @elastics ||= InstanceProxy::ModelSyncer.new(self)
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
elastics-models-1.3.3 lib/elastics/model_syncer.rb
elastics-models-1.3.2 lib/elastics/model_syncer.rb
elastics-models-1.3.1 lib/elastics/model_syncer.rb
elastics-models-1.3.0 lib/elastics/model_syncer.rb
elastics-models-1.2.1 lib/elastics/model_syncer.rb
elastics-models-1.2.0 lib/elastics/model_syncer.rb
elastics-models-1.1.11 lib/elastics/model_syncer.rb
elastics-models-1.1.10 lib/elastics/model_syncer.rb
elastics-models-1.1.9 lib/elastics/model_syncer.rb
elastics-models-1.1.8 lib/elastics/model_syncer.rb
elastics-models-1.1.7 lib/elastics/model_syncer.rb
elastics-models-1.1.6 lib/elastics/model_syncer.rb
elastics-models-1.1.5 lib/elastics/model_syncer.rb
elastics-models-1.1.4 lib/elastics/model_syncer.rb
elastics-models-1.1.3 lib/elastics/model_syncer.rb
elastics-models-1.1.2 lib/elastics/model_syncer.rb
elastics-models-1.1.1 lib/elastics/model_syncer.rb
elastics-models-1.1.0 lib/elastics/model_syncer.rb
elastics-models-1.0.10 lib/elastics/model_syncer.rb
elastics-models-1.0.9 lib/elastics/model_syncer.rb