Sha256: a4c8fb6745189fc83dbd4e773a325e197366442b59357d0bd873478fcd26abfd

Contents?: true

Size: 233 Bytes

Versions: 53

Compression:

Stored size: 233 Bytes

Contents

ActiveRecord::Base.send(:define_method, :react_serializer) do
  serializable_hash.merge(ReactiveRecord::Base.get_type_hash(self))
end

ActiveRecord::Relation.send(:define_method, :react_serializer) do
  all.to_a.react_serializer
end

Version data entries

53 entries across 53 versions & 3 rubygems

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