Arthur Neves
|
2ea0920f08
|
s/assert/assert_equal
|
2013-10-21 14:27:18 -04:00 |
|
Santiago Pastorino
|
7dcef9f0f5
|
Rename Settings to Config and use accessors to configure things
|
2013-10-21 16:23:35 -02:00 |
|
Arthur Neves
|
41f1855056
|
Add accessors to settings class
|
2013-10-21 13:05:39 -04:00 |
|
Santiago Pastorino
|
4f70dc2091
|
has_one serialized objects shouldn't be wrapped in an array and it's key is singular
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
dbf512c14c
|
Make embed nil ids work
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
841f3b8181
|
Add filter to allow users implement filter method to include/exclude attributes and relations
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
daa9304398
|
Do not convert root and meta_key to Strings
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
75e9a2599d
|
Store attributes as they are instead of converting them into Strings
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
10e882a14f
|
Allow to set embed options from AM::Serializer
|
2013-10-18 17:49:20 -02:00 |
|
Santiago Pastorino
|
6f3503c965
|
Use serializer name as root when root not set
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
626a85bc3e
|
Allow using root = false in initialize
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
7405baafd7
|
Serialize associations that doesn't have an associated serializer
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
513e7f2166
|
Add setup method and Setting object to configure AMS
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
0e0341effc
|
Implement embed in root
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
af34adc7b5
|
Move key's initialization code to initializers
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
280fd65db8
|
Allow to set key for associations through options
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
48590a2e37
|
Allow to set root for associations through options
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
8a495b1d00
|
Embedded has_one returns an array with the key pluralized
|
2013-10-18 17:49:19 -02:00 |
|
Santiago Pastorino
|
e6993c677b
|
Add missing requires
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
70ea6c6bc7
|
Add has_one and has_many :serialize => tests
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
cd3e5e9de2
|
Assign the association in the setup method
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
61a1669a86
|
Implement has_many
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
4c7599cfff
|
Use more meaningful model names for tests
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
516f5bdceb
|
Implement has_one's embed ids include true
|
2013-10-18 17:49:18 -02:00 |
|
Santiago Pastorino
|
52bb3f6929
|
Implement has_one's embed objects
|
2013-10-18 17:49:17 -02:00 |
|
Santiago Pastorino
|
d756ae4a70
|
Implement has_one's and serialize_ids
|
2013-10-18 17:49:17 -02:00 |
|
Santiago Pastorino
|
0d4dfb69a9
|
Fix directories the project is on top level dir
|
2013-10-18 17:49:17 -02:00 |
|
Santiago Pastorino
|
93baaa96b1
|
Implement meta and meta_key for AM::Serializer
|
2013-10-18 17:49:17 -02:00 |
|
Santiago Pastorino
|
a25c352525
|
Move models and serializers in test to fixtures.rb file
|
2013-10-18 17:49:17 -02:00 |
|
Santiago Pastorino
|
45453f638b
|
Tests refactor
|
2013-10-18 17:49:17 -02:00 |
|