Sha256: d8e9c0e1e6a07eeb630d297a304e72bba6570e40c59e884630c6e589ca6e9e33

Contents?: true

Size: 228 Bytes

Versions: 20

Compression:

Stored size: 228 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.react_serializer
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
reactive-record-0.7.22 lib/reactive_record/serializers.rb
reactive-record-0.7.20 lib/reactive_record/serializers.rb
reactive-record-0.7.19 lib/reactive_record/serializers.rb
reactive-record-0.7.18 lib/reactive_record/serializers.rb
reactive-record-0.7.17 lib/reactive_record/serializers.rb
reactive-record-0.7.16 lib/reactive_record/serializers.rb
reactive-record-0.7.15 lib/reactive_record/serializers.rb
reactive-record-0.7.14 lib/reactive_record/serializers.rb
reactive-record-0.7.13 lib/reactive_record/serializers.rb
reactive-record-0.7.12 lib/reactive_record/serializers.rb
reactive-record-0.7.11 lib/reactive_record/serializers.rb
reactive-record-0.7.10 lib/reactive_record/serializers.rb
reactive-record-0.7.9 lib/reactive_record/serializers.rb
reactive-record-0.7.8 lib/reactive_record/serializers.rb
reactive-record-0.7.7 lib/reactive_record/serializers.rb
reactive-record-0.7.6 lib/reactive_record/serializers.rb
reactive-record-0.7.5 lib/reactive_record/serializers.rb
reactive-record-0.7.4 lib/reactive_record/serializers.rb
reactive-record-0.7.1 lib/reactive_record/serializers.rb
reactive-record-0.7.0 lib/reactive_record/serializers.rb