Akiicat
19f8ada4af
Update serializers.md
2017-02-28 05:23:19 +08:00
Julia
b709cd41e6
Improve type method documentation ( #1967 )
2016-11-04 16:49:48 +01:00
大野峻典
ce8dd36633
Add documentation for root ( #1959 )
2016-11-01 19:25:52 +01:00
Mario Olivio Flores
1899437566
Add info on setting polymorphic serializers ( #1906 )
...
While this same document provides details on how to override the
serializer_for, not all users will realize this could be used to set the
sterilizers for polymorphic relationships. This change just adds a link
to that documentation and makes that point obvious.
2016-09-07 15:22:08 -04:00
Yogesh Khater
156dc232ce
Add doc for setting conditional serialization_scope
2016-06-30 17:14:58 +05:30
Scott Kobewka
43b6bae7fe
Fixing typo in Serializers guide for including a block after
2016-06-14 14:27:23 -04:00
Benjamin Fleischer
5017bb7f2e
Fix spelling
...
```
cat << 'EOF' > .git/hooks/pre-push
bundle exec rake rubocop
if command -v misspell >/dev/null; then
misspell -w -error -source=text {app,config,lib,spec,test,docs,bin}/**/* 2>/dev/null
fi
EOF
chmod +x .git/hooks/pre-push
```
2016-06-09 03:41:01 -05:00
André Aubin
efdee6041b
Adding documentation on conditional attributes
...
Adding documentation and short example ([from this pull request](https://github.com/rails-api/active_model_serializers/pull/1403 )) on conditional attributes.
Adding lambda literal notation and example.
Adding lambda literal notation and example, and fixing typo.
Removing PR reminder
Adding Changelog entry
Moving CHANGELOG entry under master (unreleased)
Use option instead of parameter
2016-05-20 00:47:53 +02:00
cgmckeever
ec15fa9de3
Adds documentation for overriding default serializer based on conditions ( #1730 )
...
suggested changes
update changelog
2016-05-17 15:28:54 -04:00
cgmckeever
bbed12864d
adds polymorphic option to association definition which includes association type in serializer
...
regen gemlock
regen gemlock
better variable naming
rubocop fixes
adds to changelog
adds empty relationship and has_many polymorph tests
indent
test cleaning
-rubocop
rubocop
rubocop
rubocop
changelog
remove silly .DS
fix roque failure
fix
2016-05-17 12:30:59 -05:00
Fumiaki MATSUSHIMA
aa087a22b5
String/Lambda support for conditional attributes/associations
2016-04-26 21:37:25 +09:00
Michał Zając
dcc7af925d
Update serializers.md
2016-04-11 14:52:07 +02:00
Benjamin Fleischer
afe3c93807
Add more association documentation ( #1635 )
...
[DOC] Add more association documentation
2016-04-10 12:44:37 -05:00
Krzysztof Rybka
37e0fdb0ee
Remove wrong quoting in serializers guide
2016-03-31 14:56:07 +02:00
Benjamin Fleischer
fa7b3afbfd
Prefer explicitly yielding the serializer, per groyoh
2016-03-30 14:01:28 -05:00
Marc Garreau
045fa9bc07
Adds polymorphic tests and documentation
2016-03-15 13:09:59 -06:00
Krzysztof Rybka
7c3f0ec6af
Remove wrong quoting in serializers guide
2016-03-14 15:00:46 +01:00
Benjamin Fleischer
26b089c881
Add serialization_scope example [ci skip]
2016-03-12 19:59:43 -06:00
Ben Mills
cc10928472
Provide Rails url_helpers via SerializationContext
2016-03-07 10:40:34 -07:00
Yohan Robert
727d7631ae
Add symbol support for ActiveModel::Serializer.type method
...
The ActiveModel::Serializer.type method now accepts symbol as paremeter:
class AuthorSerializer < ActiveModel::Serializer
type :profile
end
The test file for the type was also refactored.
2016-02-19 17:05:13 +01:00
Nate Sullivan
0a937a0fba
Use new block-based attribute override in docs
2016-01-23 18:59:18 -08:00
Nate Sullivan
da85d944d4
Remove unrelated code from attribute override examples
2016-01-23 18:50:18 -08:00
Benjamin Fleischer
dde843d162
Add serialization docs PR request note for conditional attributes
2016-01-13 10:19:07 -06:00
Benjamin Fleischer
ce17a1b305
[DOCS] Refactor, update, create documentation [ci skip]
2015-12-14 14:38:29 -06:00