Benjamin Fleischer
1a7528884c
Remove non-ci changes from 2373
2020-02-13 21:17:25 -06:00
Mark J. Lehman
5f25aa7cba
Fix Rails 6.0 deprecation on class.parent
2020-01-29 13:10:35 -08:00
Benjamin Fleischer
2eb57af561
Bump to 0.9.7
2017-05-01 11:04:05 -05:00
Benjamin Fleischer
ed72979168
Merge pull request #2080 from yosiat/instrumentation-cleanup
...
[0.9] Removing `instrumentation_keys` in order to fix the payload
2017-04-21 11:26:33 -05:00
Yosi Attias
1827588897
Adding tests.
2017-04-21 18:53:16 +03:00
Kir Shatrov
aa7d0ec1c9
Fix to_prepare warning
2017-04-18 21:06:20 -04:00
Yosi Attias
08fd8705f3
extract the instrumentation key to be const and frozen string
2017-03-24 15:16:01 +03:00
Yosi Attias
af410c54e6
Removing instrumentation_keys in order to fix the payload
...
See - https://github.com/rails-api/active_model_serializers/issues/2067
2017-03-24 14:59:35 +03:00
Dylan Thacker-Smith
d58a6e13b0
Move use of serializers cache out of Utils
2017-03-15 17:34:31 -04:00
Dylan Thacker-Smith
039e6eac34
Backport caching of the constant lookup
2017-03-15 16:45:48 -04:00
Benjamin Fleischer
02f2f864a4
Exclude 2.0 form 5.0; update deps
2017-03-12 16:29:29 -05:00
Benjamin Fleischer
32704cb0c1
Bump to 0.9.6
2017-01-10 16:23:05 -06:00
Kir Shatrov
96f6be92e8
Fix warning on Thor
...
The default argument type for Thor is `string`. Unless it's specified that we pass `boolean`, we get the warning:
`Expected string default value for '--serializer'; got true (boolean)`
Details: 605897b5a0
2016-12-19 13:45:49 -05:00
Benjamin Fleischer
4ce4a6265c
Bump to 0.9.5
2016-03-30 14:09:00 -05:00
Jan Wendt
a30f53de76
merge multiple nested associations
2016-03-30 08:39:40 +02:00
Benjamin Fleischer
827fca098d
Bump to 0.9.4
2016-01-05 13:26:16 -06:00
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
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
0e7cae4d6d
pass context to ArraySerializer
2015-01-27 11:37:35 -08:00
Alexandre de Oliveira
02c6ac96b0
Bump version to 0.9.3
2015-01-21 18:29:38 -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
Raphael Pereira
ea6dc424ee
Propagate serialization_options across associations
2014-12-06 09:25:30 -02:00
Steve Klabnik
f1c3268a54
bump version
2014-12-04 06:54:52 -05: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
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
341d552ae0
Make sure serialization_options is never nil
2014-10-12 13:08:45 -04:00
Robin Daugherty
f385ab05fb
Make options param optional
2014-10-12 12:01:01 -04:00
Robin Daugherty
57f1c1b1f9
Fix serialization_options for array serialization
2014-10-12 02:29:50 -04:00
Robin Daugherty
d39a99d770
Add serialization_options
...
Prior to 0.9, @options was used to see the options passed to to_json. For some reason, with 0.9 the options were no longer passed and were entirely inaccessible within a Serializer.
This restores the access by placing it in an attribute named serializer_options.
2014-10-12 01:08:47 -04:00
Ryunosuke SATO
447d96923f
Support Rails 4.2.0 with AMS 0.9
...
This patch is the same fixes as #655 and #663 for 0-9-stable branch.
2014-10-10 00:53:56 +09: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
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
Steve Klabnik
ff01ba2ced
Merge pull request #647 from gauthier-delacroix/Fix-embed_in_root_key-merging
...
Fix embed_in_root_key merging
2014-09-20 17:45:45 -04:00
Gauthier Delacroix
efa22d9d44
Add plural_default_root config option
2014-09-12 18:56:51 +02:00
Gauthier Delacroix
a862929f81
Fix embed_in_root_key merging
2014-09-09 11:27:08 +02:00
Gauthier Delacroix
e273fc5854
Fix namespaced serializers reloading
2014-09-08 13:59:50 +02:00
Gauthier Delacroix
6f4f30cda6
Allow JSONAPI unsuffixed associations keys
...
As shown here :
https://github.com/json-api/json-api/blob/gh-pages/format/index.md#resource-relationships-
2014-09-05 18:46:08 +02:00
Gauthier Delacroix
5ae536cd7b
typo
2014-09-03 15:24:49 +02:00
Gauthier Delacroix
4d3d234dda
Fix default serializer option
2014-09-03 14:57:00 +02:00
Gauthier Delacroix
8514528db7
Allow default namespace inheritance
2014-09-03 12:41:30 +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