Benjamin Fleischer
0f59d64ed5
Merge pull request #2026 from bf4/refactor_association
...
Refactor Association to make it eval reflection JIT
2017-04-30 15:41:09 -07:00
Benjamin Fleischer
876190440f
Update reflection tests
2017-04-30 16:39:25 -05:00
Benjamin Fleischer
5e01a93fc0
Update comments regarding lazy_association and TODOs
2017-04-30 15:09:18 -05:00
Benjamin Fleischer
ff5ab21a45
Make Association totally lazy
2017-04-23 18:40:46 -05:00
Benjamin Fleischer
7697d9f5ec
Refactor: introduce lazy association
2017-04-23 17:53:00 -05:00
Benjamin Fleischer
34d55e4729
Remove extra reflection classes
2017-04-23 17:46:55 -05:00
Benjamin Fleischer
7d8fb1606b
Cleanup
2017-04-23 17:42:30 -05:00
Benjamin Fleischer
ee69293c8f
Refactor reflection building serializer class
2017-04-23 15:21:29 -05:00
Benjamin Fleischer
079b3d6841
Refactor collection reflection
2017-04-23 14:53:45 -05:00
Benjamin Fleischer
1bddd9fdb5
Refactor
2017-04-23 14:47:55 -05:00
Benjamin Fleischer
fad4ef1046
Refactor reflection building of association
2017-04-23 14:19:04 -05:00
Benjamin Fleischer
cb16457bb3
Make reflection explicitly dependents on association
2017-04-23 14:18:30 -05:00
Benjamin Fleischer
ba2aa1fdfd
Remove dead comments
2017-04-23 14:18:09 -05:00
Benjamin Fleischer
43c3c231ef
Use reflection key since we have it
2017-04-23 14:17:59 -05:00
Benjamin Fleischer
3ba4a8c9b2
Always return an enumerator
2017-04-23 14:17:06 -05:00
Benjamin Fleischer
3fb72d94b5
Merge pull request #2094 from bf4/move_association_concern_to_association
...
Move association serialization to association
2017-04-22 22:14:33 -05:00
Benjamin Fleischer
6cd6ed7e78
Move association serialization to association
2017-04-22 22:13:52 -05:00
Benjamin Fleischer
c2dccbac5f
Move attributes cache method out of concern
2017-04-22 22:13:52 -05:00
Benjamin Fleischer
6b1a487e00
Merge pull request #2092 from bf4/reflection_block_changes_meta_links
...
Add reflection tests
2017-04-22 22:12:12 -05:00
Benjamin Fleischer
758e44e6e2
Style fixes
2017-04-22 22:10:43 -05:00
Benjamin Fleischer
c13354c4e8
Add test todos before I forget
2017-04-22 22:08:23 -05:00
Benjamin Fleischer
b4cef58e98
Correct tests since reflections changes
2017-04-22 22:08:20 -05:00
Benjamin Fleischer
810229656d
Test Reflection value/include_data
2017-04-22 22:07:02 -05:00
Benjamin Fleischer
8440455002
Correct tests since reflections changes
2017-04-22 22:06:59 -05:00
Benjamin Fleischer
e07613b63f
Assert mutating reflection is not thread-safe
2017-04-22 22:06:21 -05:00
Benjamin Fleischer
629aa8c7b1
Correct tests since reflections changes
2017-04-22 22:06:08 -05:00
Benjamin Fleischer
1ef7c7d35b
Add reflection tests
2017-04-22 22:01:54 -05:00
Benjamin Fleischer
f76ea3d39e
Merge pull request #2089 from bf4/improve_reflection_interface
...
Improve reflection internal interface
2017-04-22 21:55:34 -05:00
Benjamin Fleischer
f5ad632cc0
Merge pull request #2112 from cassidycodes/use-grape-v0.19.1
...
Modifying gemspec to use grape v0.19.1
2017-04-18 18:20:44 -05:00
Cassidy K
729882caaa
Modifying gemspec to use grape v0.19.1
2017-04-16 10:03:43 -04:00
Benjamin Fleischer
04125a06b0
Merge pull request #2090 from mikekellyio/patch-1
...
Reword ActiveModelSerializer::Model docs for clarity
2017-03-29 08:50:14 -05:00
Mike Kelly
b2f5f32036
Reword ActiveModelSerializer::Model docs for clarity
...
Fixed some typos, and reworked a sentence to be clearer.
2017-03-28 09:44:53 -04:00
Timur
1a5e66b933
[0.10] add docs for include ( #2081 )
...
* Add docs for `include` option in the adapter
2017-03-28 02:16:45 -05:00
Benjamin Fleischer
f327b6be0c
Improve reflection internal interface
2017-03-27 22:46:07 -05:00
Benjamin Fleischer
d24a7867b9
Merge pull request #2085 from tricknotes/fix-doc
...
Fix example code in `doc/general/getting_started.md`
2017-03-27 21:06:31 -05:00
Ryunosuke Sato
cec6478f32
Fix example code in doc/general/getting_started.md
...
The `belongs_to` method should take relation name, not a foreign_key property.
2017-03-24 10:40:27 +09:00
Benjamin Fleischer
80e470dcdb
Merge pull request #2074 from bf4/make_serializer_interface_more_obvious
...
Make serializer interface more obvious
2017-03-18 22:41:02 -05:00
Benjamin Fleischer
2e71bc47f4
Improve comments; move caching concern to caching.rb
2017-03-16 10:14:18 -05:00
Benjamin Fleischer
a461389f4c
Merge pull request #2073 from bf4/better_variables_in_serializer_lookup
...
Better variables; allow looking serializer from class
2017-03-15 09:19:07 -05:00
Benjamin Fleischer
36b4eac79b
Make serializer interface more obvious
2017-03-14 20:54:54 -05:00
Benjamin Fleischer
e325b329d0
Merge pull request #2077 from lvela/patch-1
...
Correct docs on using `JSON` adapter [ci skip]
2017-03-13 16:06:21 -05:00
lvela
c377b7e31d
Correct info on using JSON adapter
...
I think this needs to be changed (based on info above).
2017-03-13 14:21:56 -05:00
Benjamin Fleischer
47e82e09b1
Make behavior explicit
2017-03-12 20:18:48 -05:00
Benjamin Fleischer
9c26ffe2d6
Better variables; allow looking serializer from class
2017-03-12 20:16:54 -05:00
Benjamin Fleischer
87e929a255
Merge pull request #2072 from bf4/more_precise_rubocop
...
Add rubocop binstub that respects file patterns
2017-03-12 16:34:14 -05:00
Benjamin Fleischer
a36b25d2db
Add rubocop binstub that rspects file patterns
...
Best of both worlds!
(Because you can't override the default rubocop includes)
The binstub basically, lets me safely `rubocop test/foo_test.rb`
instead of `bundle exec rubocop test/foo_test.rb`
```bash
# ~/.profile
# https://twitter.com/tpope/status/165631968996900865
# tl;dr `mkdir .git/safe` to add `bin` to path, e.g. `bin/rails`
PATH=".git/safe/../../bin:$PATH"
```
2017-03-12 15:50:05 -05:00
Matt Gardner
24c0212c83
Providing caveat in documentation ( #2070 )
...
* Providing caveat in documentation
I think it'd be helpful to mention that `jsonapi_parse!` will throw an InvalidDocument error.
* Update ember-and-json-api.md
2017-03-08 18:04:35 -05:00
Benjamin Fleischer
28b8e3dd17
Bump to v0.10.5
2017-03-07 15:41:20 -06:00
Benjamin Fleischer
0b96d3544a
Merge pull request #2069 from Hitabis/patch-1
...
Remove typo from upgrade from 0.8 to 0.10 docs [ci skip]
2017-03-07 09:26:21 -06:00
Hitabis GmbH
d48aaefdb2
Remove typo from upgrade from 0.8 to 0.10 docs
...
Typo ActiveMode::Serializer was changed to ActiveModel::Serializer
2017-03-07 09:36:05 +01:00