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-mesh-1.0.0.lap24 lib/reactive_record/serializers.rb
hyper-mesh-1.0.0.lap23 lib/reactive_record/serializers.rb
hyper-mesh-1.0.0.lap22 lib/reactive_record/serializers.rb
hyper-mesh-0.6.0 lib/reactive_record/serializers.rb
hyper-mesh-0.5.4 lib/reactive_record/serializers.rb
hyper-mesh-0.5.3 lib/reactive_record/serializers.rb
hyper-mesh-0.5.2 lib/reactive_record/serializers.rb
hyper-mesh-0.5.1 lib/reactive_record/serializers.rb
hyper-mesh-0.5.0 lib/reactive_record/serializers.rb
hyper-mesh-0.4.0 lib/reactive_record/serializers.rb
reactive-record-0.8.3 lib/reactive_record/serializers.rb
reactive-record-0.8.2 lib/reactive_record/serializers.rb
reactive-record-0.8.1 lib/reactive_record/serializers.rb
reactive-record-0.7.43 lib/reactive_record/serializers.rb
reactive-record-0.7.42 lib/reactive_record/serializers.rb
reactive-record-0.7.41 lib/reactive_record/serializers.rb
reactive-record-0.7.40 lib/reactive_record/serializers.rb
reactive-record-0.7.39 lib/reactive_record/serializers.rb
reactive-record-0.7.38 lib/reactive_record/serializers.rb
reactive-record-0.7.37 lib/reactive_record/serializers.rb