bkoltai
5e72ec4be7
Fix small typo
2016-07-13 10:12:41 -07:00
bkoltai
e966d07b2c
PR comments
...
- Add list of breaking changes
- Add `true` param to `responds_to?` calls in overriden `try`
2016-07-13 10:11:19 -07:00
bkoltai
3ecc3ed0c1
Add documentation on upgrading from 0.8 to 0.10 safely
2016-07-13 09:48:07 -07:00
Benjamin Fleischer
91b37cee2c
Merge pull request #1835 from greysteil/update-changelog
...
Fix typo in changelog [ci skip]
2016-07-08 16:36:17 -05:00
Grey Baker
f193895f2d
Fix typo in changelog
2016-07-08 22:31:10 +01:00
Benjamin Fleischer
993cc504d6
Merge pull request #1830 from bf4/rails_5
...
Rails 5.0 CI
2016-07-05 20:09:21 -05:00
Benjamin Fleischer
cf3cfaa924
Rails 5.0 CI
2016-07-05 17:46:14 -05:00
Benjamin Fleischer
b41df13341
Add Rails 5.0 to test matrix
2016-07-05 13:22:16 -05:00
Benjamin Fleischer
d8f3fa4bca
Bump to 0.10.2
2016-07-05 13:20:24 -05:00
Benjamin Fleischer
61059e900c
Merge pull request #1824 from yogeshjain999/conditional_serialization_scope_doc
...
Add doc for setting conditional serialization_scope [ci skip]
2016-07-05 13:12:40 -05:00
Yogesh Khater
156dc232ce
Add doc for setting conditional serialization_scope
2016-06-30 17:14:58 +05:30
Benjamin Fleischer
c029c00758
Merge pull request #1802 from kyleshevlin/update_integrations_ember_and_json_api
...
update integration documentation for ember and JSONAPI to include…
2016-06-26 22:26:08 -05:00
Benjamin Fleischer
f4e00dc65d
Merge pull request #1815 from dubadub/making-rubocop-happy
...
Fix code-styling issues from .rubocop_todo.yml
* re: RuboCop: Bulk minor style corrections
* re: RuboCop - hash indention corrections
* re: RuboCop - replace rocket style hashes
* re: RuboCop - get rid of redundant curly braces around a hash parameter
* re: RuboCop - Align the elements of a hash literal if they span more than one line.
* re: RuboCop - Use nested module/class definition instead of compact style.
* re: RuboCop - Suppress of handling LoadError for optional dependencies
* re: RuboCop - use include_ prefix instead of has_
* re: RuboCop - Disable Style/PredicateName rule for public API methods
* re: RuboCop - Remove empty .rubocop_todo.yml
* re: RuboCop - replace rocket style hashes
2016-06-26 22:22:55 -05:00
Francisco Quintero
e8f0dc787e
Add note about will_paginate previous_page method ( #1801 )
...
* Add note about will_paginate previous_page method
Pagination_dict method in JSON adapter section refers only to kaminari prev_page. Newer version of will_paginate uses previous_page method.
* move annotation for will_paginate's previous_page method to inline comment in example methods definition
2016-06-26 22:17:21 -05:00
Luiz Eduardo Kowalski
d27b21a733
Add docs for the fields option
2016-06-24 07:09:21 +02:00
zaaroth
bcf3358524
Ensuring read_multi works with fragment cache. ( #1814 )
...
* Ensuring read_multi works with fragment cache.
2016-06-22 22:33:02 -05:00
Alexey Dubovskoy
800221ed90
re: RuboCop - replace rocket style hashes
2016-06-21 22:08:27 +01:00
Alexey Dubovskoy
26aa06284f
re: RuboCop - Remove empty .rubocop_todo.yml
2016-06-20 22:19:34 +01:00
Alexey Dubovskoy
af959b0273
re: RuboCop - Disable Style/PredicateName rule for public API methods
2016-06-20 22:17:19 +01:00
Alexey Dubovskoy
ce168f9414
re: RuboCop - use include_ prefix instead of has_
2016-06-20 22:17:01 +01:00
Alexey Dubovskoy
aa416b2fb3
re: RuboCop - Suppress of handling LoadError for optional dependencies
2016-06-20 22:15:58 +01:00
Alexey Dubovskoy
85f417f8d2
re: RuboCop - Use nested module/class definition instead of compact style.
2016-06-20 22:15:20 +01:00
Alexey Dubovskoy
8a2beacb6f
re: RuboCop - Align the elements of a hash literal if they span more than one line.
2016-06-20 22:14:56 +01:00
Alexey Dubovskoy
13015680a7
re: RuboCop - get rid of redundant curly braces around a hash parameter
2016-06-20 22:14:39 +01:00
Alexey Dubovskoy
024b2d51d3
re: RuboCop - replace rocket style hashes
2016-06-20 22:14:12 +01:00
Alexey Dubovskoy
004f1437d8
re: RuboCop - hash indention corrections
2016-06-20 22:13:21 +01:00
Alexey Dubovskoy
f15f6850de
re: RuboCop: Bulk minor style corrections
2016-06-20 22:12:16 +01:00
Benjamin Fleischer
32a3b53892
Bump to 0.10.1
2016-06-16 09:41:10 -05:00
Benjamin Fleischer
0fed4869df
Merge pull request #1754 from bf4/handle_missing_serialization_context_when_paginating
...
Fix #1759 , Grape integration, adds serialization_context
2016-06-15 15:19:35 -05:00
Yohan Robert
b4615ea90f
Merge pull request #1805 from ScottKbka/fixingTyposInSerializerGuides
...
Fixing typo in Serializers guide for including a block after
2016-06-15 13:00:52 +02:00
Kyle Shevlin
4f508a88c9
remove mime type registration, adjust key_transform advice
2016-06-14 22:05:54 -07:00
Scott Kobewka
43b6bae7fe
Fixing typo in Serializers guide for including a block after
2016-06-14 14:27:23 -04:00
Benjamin Fleischer
1a9c62215a
Use with_adapter(&block) to fix failing tests
...
I missed that the code was changing global state.
2016-06-14 09:46:22 -05:00
Onome
580492282f
Fix #1759 , Grape integration, adds serialization_context ( #4 )
...
* Fix #1759 , Grape integration, adds serialization_context
- `serialization_context` is added in grape formatter so grape continues to render models without an explicit call to the `render` helper method
- Made it straightforward for subclasses to add other serializer options (such as `serialization_scope`).
* Updated Grape tests to include:
- paginated collections
- implicit Grape serializer (i.e. without explicit invocation of `render` helper method)
* Update Changelog with fixes.
2016-06-14 09:46:22 -05:00
Benjamin Fleischer
a7296e8a92
Fix #1759 , Grape integration, adds serialization_context
...
- improves improves serialization_context to take options and not depend
on a `request` object.
- adds descriptive error on missing serialization_context.
- Document overriding `CollectionSerializer#paginated?`.
2016-06-14 09:45:30 -05:00
Kyle Shevlin
8df5b045f2
update integration documentation for ember and JSONAPI to include key_transform underscores to match the attribute and relationship underscore transformations
2016-06-13 22:54:27 -07:00
Benjamin Fleischer
a52189c9c0
Merge pull request #1792 from bf4/spelling_fixes
...
Fix spelling
2016-06-09 19:44:57 -05: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
Benjamin Fleischer
3594634a04
Add changelog for 1287 [ci skip]
2016-06-09 03:33:02 -05:00
Benjamin Fleischer
848479b460
Merge branch 'vasilakisfil-feat/fields_from_constructor'
2016-06-09 03:27:09 -05:00
Filippos Vasilakis
be01fc8ee7
Pass fields down from constructor
2016-06-09 03:26:52 -05:00
Benjamin Fleischer
cd9689683c
Merge branch 'ouvrages-exclude_nil_links'
2016-06-09 02:55:32 -05:00
Benjamin Fleischer
b9e7dc5584
Merge pull request #1785 from bf4/fix_benchmark_expected_cache_response
...
Make bencharked model names reflect relationships; fix expected response
2016-06-09 00:07:59 -05:00
Benjamin Fleischer
af368af53e
Make bencharked model names reflect relationships; fix expected response
2016-06-08 23:40:36 -05:00
Benjamin Fleischer
3d9ab37ffa
Merge pull request #1781 from bf4/serializer_cleanup_6
...
Fix up caching, especially fragment_cache
2016-06-08 23:39:40 -05:00
Benjamin Fleischer
b599360ae3
Provide convenience serializer_class for all the self.class calls
...
per groyoh
https://github.com/rails-api/active_model_serializers/pull/1781#discussion_r66021340
2016-06-07 20:28:50 -05:00
Benjamin Fleischer
5375e009e2
Test caching with fragmented key
...
- on association, fix up assocation logic
- on attribute
2016-06-07 20:26:38 -05:00
Benjamin Fleischer
b8924157d7
Remove remaining fragmented cache class
2016-06-07 03:42:03 -05:00
Benjamin Fleischer
253205bb49
Improve Coverage
2016-06-07 01:50:03 -05:00
Benjamin Fleischer
35a7c81034
Fix up caching, especially fragment_cache
2016-06-07 00:52:05 -05:00