Commit Graph

1468 Commits

Author SHA1 Message Date
Benjamin Fleischer
6a029595ff Merge pull request #2184 from EdwardBetts/spelling
correct spelling mistake [ci skip]
2017-09-18 23:21:54 -05:00
Edward Betts
371614fcb4 correct spelling mistake 2017-09-01 22:09:36 +01:00
Benjamin Fleischer
954cc174fc Merge pull request #2162 from swrobel/patch-2
Fix 0.10.6 Guides link
2017-07-05 10:50:23 -05:00
Stefan Wrobel
d961db705d Fix 0.10.6 Guides link 2017-07-04 17:54:40 -07:00
Benjamin Fleischer
e3e5a41715 Merge pull request #2121 from bf4/new_master
Clear out master, move 0.10.x dev to the stable branch
2017-05-12 08:58:05 -05:00
Benjamin Fleischer
8a4f94181e Better describe current status 2017-05-11 13:15:02 -05:00
Benjamin Fleischer
0ef6ac30fc Clear out master 2017-05-02 09:57:09 -05:00
Benjamin Fleischer
dff621e174 Bump to v0.10.6 2017-05-01 10:59:14 -05:00
Benjamin Fleischer
982fe26ee8 Merge pull request #2120 from bf4/allow_customizing_relation_foreign_key
Document new reflection options; support :foreign_key [ci skip]
2017-05-01 10:56:35 -05:00
Benjamin Fleischer
ec7b5859f7 Document namespace 2017-05-01 10:25:14 -05:00
Benjamin Fleischer
96028a7b99 Document new reflection options; support :foreign_key 2017-05-01 10:18:13 -05:00
Benjamin Fleischer
af5e9d6018 Merge pull request #2104 from cassidycodes/update-docs
Update Documentation on Serializers and Rendering [ci skip]
2017-04-30 22:06:10 -07:00
Benjamin Fleischer
05cf2223cf Merge pull request #2115 from tonyta/update-readme-v0.10.5
point to correct latest version in readme [ci skip]
2017-04-30 22:03:13 -07:00
Benjamin Fleischer
004e0dc951 Merge pull request #2119 from bf4/exclude_empty_relationships
Return null resource object identifier for blank id
2017-04-30 21:45:10 -07:00
Benjamin Fleischer
73eae19b3d Return null resource object identifier for blank id
Also, fix test where attributes were included when id was ""

```
  1) Failure:
  ActionController::Serialization::AdapterSelectorTest#test_render_using_adapter_override
  [test/action_c$ntroller/adapter_selector_test.rb:53]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -"{\"data\":{\"id\":\"\",\"type\":\"profiles\",\"attributes\":{\"name\":\"Name 1\",\"description\":\"Description 1\"}}}"
  +"{\"data\":null}"
```
2017-04-30 23:28:08 -05:00
Benjamin Fleischer
afe0183f21 Merge pull request #2118 from bf4/only_calculate_cache_key_when_caching
Do not calculate cache_key unless caching
2017-04-30 21:17:31 -07:00
Benjamin Fleischer
c9b0e4e6ae Do not calculate cache_key unless caching 2017-04-30 23:03:18 -05:00
Benjamin Fleischer
81a13c4b32 Merge pull request #2093 from bf4/undef_unneeded_kernel_methods
Undef problematic Object methods
2017-04-30 16:51:19 -07:00
Benjamin Fleischer
7d0f4e0a61 Merge pull request #1857 from bf4/smarter_association_id_lookup
Smarter association id lookup-- no db hit on belongs_to for id-only
2017-04-30 16:50:49 -07:00
Benjamin Fleischer
6e41528515 Skip eval relationships object on belongs to 2017-04-30 18:32:08 -05:00
Manuel Thomassen
273b7e7f30 belongs_to causes unnecessary db hit 2017-04-30 18:11:37 -05:00
Benjamin Fleischer
4fb635bd29 Required 2017-04-30 17:56:13 -05:00
Benjamin Fleischer
320596b75b Undef problematic Object methods 2017-04-30 17:56:13 -05:00
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