Alexandre de Oliveira
dc08f0ec80
Merge pull request #748 from raphaelpereira/0-9-stable
...
Propagate serialization_options across associations
2015-03-30 16:31:41 -03:00
Raphael Pereira
fd5cd879f8
Added test case for association propagating options
2015-03-28 13:24:03 -03:00
Anthony Dmitriyev
d62463de15
Fix issue with embedding multiple associations under the same root key
2015-03-13 17:24:54 +00:00
Alexandre de Oliveira
55210ab61f
Merge pull request #813 from jtomaszewski/feature/custom-serializer-class
...
Allow to define custom serializer for given class
2015-03-09 11:43:53 -03:00
Jacek Tomaszewski
d8b78a36cf
Allow to define custom serializer for given class
...
.. by defining #serializer_class method in serialized object's class. Resolves #515 .
2015-03-08 14:58:29 +01:00
Tony Novak
263b66e423
Fix and test for #490
2015-01-30 13:49:15 -08:00
Josh Lane
e0690862ce
test array serializer context
2015-01-28 11:38:54 -08:00
Alexandre de Oliveira
69aff2a2e8
Merge branch '0-9-1' into 0-9-stable
...
This will bring back all features in 0.9.1 minus the problematic
Enumerable commit that broke it.
2015-01-21 22:01:14 -02:00
Nate Berkopec
577db35824
Revert "Make sure render json: ..., each_serializer: ... is working with Enumerables"
...
This reverts commit 90343cea4d .
2015-01-13 17:12:02 -05:00
Alexandre de Oliveira
3baff109eb
Merge pull request #717 from r-ideas/0-9-stable
...
fixed issue with rendering Hash which appears in rails 4.2.0.beta4
2015-01-06 09:34:03 -02:00
Sam Woodard
69315a25a5
remove trailing whitespace
2014-12-07 08:45:32 -08:00
Raphael Pereira
db566b427d
serialization_options propagation - test correction
2014-12-06 09:50:42 -02:00
Roman Greshny
4b49d1b132
fixed issue with rendering Hash which appears in rails 4.2.0.beta4
2014-11-05 16:34:08 +02:00
Kevin Bullaughey
edfd38bdee
converted has many to use string key for association, makeing it compatable with has_one; fixed tests that relied on symbol keys for has_many associations
2014-10-22 10:33:11 -04:00
Kevin Bullaughey
34d684ee9a
added failing spec to show how both symbol and string keys are causing problems
2014-10-22 10:31:18 -04:00
Steve Klabnik
89f87bf855
Merge pull request #679 from Ahalogy/serializer-options
...
Serializer options
2014-10-14 11:37:47 -04:00
Steve Klabnik
4a4bcdc57b
Merge pull request #666 from jastkand/include_url_helpers
...
Auto-include url_helpers for Rails-apps. Fixes #563
2014-10-14 11:33:20 -04:00
Robin Daugherty
2a1d9346f6
Test to cover serialization_options
2014-10-12 19:25:38 -04:00
Steve Klabnik
5acd98e61b
Merge pull request #639 from gauthier-delacroix/Unsuffixed-default-associations-keys
...
Allow JSONAPI unsuffixed associations keys
2014-10-08 14:45:46 -04:00
Gauthier Delacroix
a39d08d2ad
Cleaner unsuffixed association keys tests
2014-10-08 16:51:44 +02:00
Gauthier Delacroix
4ac07de799
Unsuffixed association keys tests
2014-10-08 16:20:49 +02:00
Andrey Krivko
1875cab64a
Fix path where test-app is getting configured
2014-09-29 18:07:56 +07:00
Andrey Krivko
dce6e59772
Auto-include url_helpers for Rails-apps. Fixes #563
2014-09-29 17:16:33 +07:00
Steve Klabnik
06e3bb77f2
Merge pull request #662 from jastkand/remove-question-sign
...
Add auto-stripping of question mark for attributes
2014-09-26 10:35:43 -04:00
Andrey Krivko
bded293529
Add auto-stripping of question mark for attributes
2014-09-26 15:42:41 +07:00
Steve Klabnik
c19a254154
Merge pull request #632 from gauthier-delacroix/Default_namespace_inheritance
...
Default namespace option
2014-09-25 19:41:33 -04:00
Andrey Chernih
90343cea4d
Make sure render json: ..., each_serializer: ... is working with Enumerables
...
If you try to render Enumerable with custom `each_serializer` then it will render with default serializer instead:
```ruby
render json: sequel_scope, each_serializer: CustomSerializer
```
This commit fixes this behaviour. Most likely fixes https://github.com/rails-api/active_model_serializers/issues/664 as well
2014-09-25 16:59:47 +04:00
Gauthier Delacroix
efa22d9d44
Add plural_default_root config option
2014-09-12 18:56:51 +02:00
Gauthier Delacroix
adc3fc9742
Default serializer tests
...
Based on namespace serializer tests except namespace is set in
default_serializer_options
2014-09-03 14:58:22 +02:00
Steve Klabnik
922dd273c9
Merge pull request #620 from tristandunn/td-notifications
...
Avoid overwriting notifications for template assertions.
2014-08-31 20:02:08 -04:00
Steve Klabnik
d40f0d67b9
Merge pull request #617 from konukhov/namespaced_serializers-0-9
...
Namespaced serializers #499
2014-08-31 20:00:47 -04:00
Steve Klabnik
f7f5e29358
Merge pull request #601 from radanskoric/fix-nested-embed-in-root
...
Fix for nested embed_in_root when serializer used as part of an association
2014-08-31 19:57:27 -04:00
Tristan Dunn
610aeb2e92
Avoid overwriting notifications for template assertions.
2014-08-29 08:18:44 -05:00
Theodore Konukhov
493041fdff
sync with upstream
2014-08-29 06:28:13 +02:00
Theodore Konukhov
b297f17e53
test for namespaced associations + bug fixed
2014-08-29 06:11:40 +02:00
Theodore Konukhov
dde1492934
tests for namespaced controlleler
2014-08-26 18:07:31 +02:00
Pol Miro
bb18fc6225
Add tests for has_one polymorphic
2014-08-25 23:32:09 -07:00
Pol Miro
63589f7500
Add tests for has_many polymorphic
2014-08-25 23:32:09 -07:00
Radan Skoric
ddfd8d2c11
embed_in_root works even if serializer is invoked through another serializers' association which itself does not have embed_in_root set
2014-08-23 18:21:24 +02:00
Steve Klabnik
ae7959b76e
Merge pull request #512 from TimPetricola/fix-options-access
...
Custom options are accessible in serializer
2014-08-22 16:15:41 -04:00
Steve Klabnik
74625f778b
Merge pull request #594 from bolshakov/feature/custom_array_serializer
...
Support custom array serializer
2014-08-22 15:28:26 -04:00
Steve Klabnik
e9378cc9ab
Merge pull request #595 from bolshakov/feature/array_serializer_options
...
Array serializer pass except and only options to item serializers
2014-08-22 15:26:17 -04:00
Steve Klabnik
92f1db0137
Merge pull request #596 from bolshakov/feature/instumentation
...
Test::Unit assert_serializer implemented
2014-08-22 15:25:52 -04:00
Tema Bolshakov
c5d9d97f26
Assert with serializer class
2014-08-20 12:34:34 +04:00
Tema Bolshakov
865ab64025
rename spec file
2014-08-20 11:33:39 +04:00
Arthur Nogueira Neves
9fb343b5fb
Merge pull request #591 from donbobka/feature/fix_format_keys_for_array_wo_root
...
Feature/fix format keys for array wo root
2014-08-18 10:21:37 -04:00
Tema Bolshakov and Dmitry Myaskovskiy
eaedcefa4e
Test::Unit assert_serializer implemented
...
So you can assert specific serializer to be used.
2014-08-18 18:04:51 +04:00
Tema Bolshakov
e3ab34dd74
Array serializer pass except and only options to item serializers
2014-08-18 14:21:08 +04:00
Tema Bolshakov
6869cc9c3b
No need to instantiate serializer
2014-08-18 12:47:22 +04:00
Tema Bolshakov
c389ae2207
Support customer array serializer
2014-08-18 12:37:01 +04:00