10 Commits

Author SHA1 Message Date
Christopher Sansone
b30a53bc5f ability to customize rendering of attributes via a block (#54)
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* ability to customize rendering of attributes via a block

* fixed attribute render spec

* minimized specs to specifially test this feature

* Update README to include attribute definitions

* Fixed syntax error

* Fixed merge issues
2018-02-09 08:59:07 -08:00
Roberto Quintanilla
6d516c217c Support for polymorphic associations (#64)
* add hash benchmarking to performance tests

* Add missing attribute in README example

* Disable GC before doing performance test

* Enable oj to AM for fair benchmark test

* Support for polymorphic associations

* Optional dictionary for polymorphic associations

* Added polymorphic record types memoization

* Updated performance tests for polymorphic examples to include jsonapi-rb
2018-02-08 22:18:46 -08:00
Benjamin Fleischer
d4b6216ff3 Make our own fast MultiToJson 2018-02-07 18:02:59 -08:00
Benjamin Fleischer
b717ffeccf Let people choose their JSON serializer; JSON:API is not circular 2018-02-07 18:02:59 -08:00
Guillermo Iguaran
639c314272 Use Object#public_send to respect attributes visibility 2018-02-04 19:32:59 -08:00
Sergii Makagon
7f27543081 Refactoring 2018-02-04 17:12:18 -08:00
Benjamin Roth
dc563407e0 rename in-block var to avoid confusion 2018-02-04 12:00:45 -08:00
Benjamin Roth
088d655998 get rid of temp variables 2018-02-04 12:00:45 -08:00
Amrr Bakry
c25dc7c60a Remove duplicated record_type 2018-02-01 17:48:58 +02:00
Shishir Kakaraddi
5374a1378e initial commit 2018-01-31 16:20:40 -08:00