Commit Graph

776 Commits

Author SHA1 Message Date
Santiago Pastorino
45453f638b Tests refactor 2013-10-18 17:49:17 -02:00
Santiago Pastorino
b6f9c5ee43 Implement Serializer's scope 2013-10-18 17:49:16 -02:00
Santiago Pastorino
c3f857d1b6 Implement Serializer's root 2013-10-18 17:49:16 -02:00
Santiago Pastorino
7143eb8301 Serialize just attributes 2013-10-18 17:49:16 -02:00
Santiago Pastorino
14f51f2ea9 Remove everything, rewrite of AMS starts here 2013-10-18 17:46:18 -02:00
Steve Klabnik
919bb38401 Merge pull request #382 from mikegee/360-design-and-implementation-wrapped
Addition of Design and Implementation section to Readme (wrapped)
2013-08-29 17:30:59 -07:00
mikegee
23748e7f2b add Design and Implementation section to readme
credit to @garysweaver
2013-08-29 16:04:20 -04:00
Peter Schröder
79b84a10e3 add MiniTest and RSpec examples 2013-08-13 20:16:11 +02:00
Peter Schröder
56eaa61233 add an example for how to test serializers easily
off topic: please deactivate the WIKI if there is no content in it
2013-08-13 15:17:16 +02:00
Steve Klabnik
8ac4bf9006 Merge pull request #348 from stiller/master
Fixed typo
2013-07-04 12:35:10 -07:00
stiller
a62680c883 Update README.md
Fixed typo.
2013-07-04 11:32:25 +02:00
Steve Klabnik
82cc4e815a Merge pull request #344 from tjschuck/caching_docs
Add docs about caching
2013-06-28 02:16:41 -07:00
T.J. Schuck
027aa38138 Add docs about caching 2013-06-26 16:48:36 -04:00
Steve Klabnik
cee5705576 Merge pull request #338 from socialreferral/master
Use 1.9 style hash syntax in the docs
2013-06-18 13:36:05 -07:00
Andre Meij
54ce37b956 Change to 1.9 Hash syntax in docs 2013-06-18 16:40:14 +02:00
Andre Meij
88ff42ebc8 Use 1.9 hashes in the readme 2013-06-18 16:35:03 +02:00
Logan Serman
b20ad33407 Updating the meta key documentation to warn users that { root: false } will cause the serializer to ignore the meta key as it leads to invalid JSON.
https://github.com/rails-api/active_model_serializers/issues/332
2013-06-16 01:01:03 -05:00
Steve Klabnik
4f185efa90 Merge pull request #329 from jgaskins/patch-1
Remove errant punctuation
2013-06-08 13:11:16 -07:00
Jamie Gaskins
74af00f17a Remove errant apostrophes
Apostrophes don't indicate pluralization.
2013-06-08 12:18:34 -03:00
Steve Klabnik
614edeff7f Merge pull request #327 from ansonhoyt/master
Update docs with example of attribute named "object"
2013-06-06 15:58:42 -07:00
Anson Hoyt
173f3f2a17 Explain how to include an attribute named "object" 2013-06-06 14:41:45 -04:00
Steve Klabnik
edb673eea3 Merge pull request #325 from dgalarza/edge_build_fix
Use minitest/autorun
2013-06-04 18:33:08 -07:00
Damian Galarza
0d674369ff Use minitest/autorun
Allows edge gemset to build
2013-06-04 19:17:31 -04:00
Santiago Pastorino
1d7cb2da75 Merge pull request #321 from teeparham/ruby19
Remove support for ruby 1.8 (fixes #310)
2013-05-31 15:51:25 -07:00
Tee Parham
725952c862 require ruby >= 1.9.3
* remove 1.9.2 from travis
2013-05-30 15:26:56 -06:00
Tee Parham
31e1dab69f require rails >= 3.2
* remove ancient confusing comment in SerializerGenerator
2013-05-30 15:26:17 -06:00
Tee Parham
d10b5f6ac0 add ruby 1.8 install note [ci skip]
fixes #310
2013-05-30 15:25:06 -06:00
Tee Parham
c3fa96456c upgrade hash syntax in tests 2013-05-30 15:25:06 -06:00
Tee Parham
74ba9dc76c upgrade hash syntax 2013-05-30 15:25:06 -06:00
Tee Parham
b686b73edf add note to changelog [ci skip] 2013-05-30 15:24:49 -06:00
Tee Parham
a857952d12 remove 1.8 versions from travis 2013-05-29 19:46:55 -06:00
Tee Parham
62167d243b require ruby >= 1.9.2 in gemspec [ci skip]
* use consistent quotes
2013-05-29 19:45:27 -06:00
Tee Parham
143e5d9866 do not generate id method (was for 1.8 only)
see https://github.com/rails-api/active_model_serializers/issues/127
for original motivation
2013-05-29 19:39:00 -06:00
Santiago Pastorino
2c563eaace Turn off Travis' email notifications 2013-05-29 18:00:39 -07:00
Santiago Pastorino
1b142a23f1 Add campfire notifications 2013-05-29 17:07:45 -07:00
Santiago Pastorino
c97acfd9ba Always set a serializer for each item of an Array
model.active_model_serializer could return nil so we need to ensure that
if serializer is not setted we set DefaultSerializer to it.

This reverts commit 64ed05c484.

Fixes #318
2013-05-28 18:13:07 -07:00
Steve Klabnik
8795f2bc1e Add CONTRIBUTING.md 2013-05-25 08:04:05 -05:00
Santiago Pastorino
c023052df8 Add CHANGELOG.md entries 2013-05-24 15:00:29 -07:00
Santiago Pastorino
f68003f64d Merge pull request #313 from geigerzaehler/fix_root
Don't wrap array items in root element
2013-05-24 14:49:41 -07:00
Santiago Pastorino
9521e912fe serialize_ids call methods on the corresponding serializer if defined 2013-05-24 14:09:27 -07:00
Thomas Scholtes
258248d6c0 Don't wrap array items in root element 2013-05-24 10:23:59 +02:00
Santiago Pastorino
ee846f39af Fix build in 1.8.7 2013-05-22 14:24:22 -07:00
Santiago Pastorino
f533fa24df Merge pull request #306 from dgalarza/controller_action_scope_name_fix
Allow a controller to properly override scope_name
2013-05-22 14:21:20 -07:00
Steve Klabnik
50c9f02249 Merge pull request #309 from rymai/patch-1
Fix typo for ActiveModel::Serializer::Caching in the CHANGELOG
2013-05-22 06:55:24 -07:00
Rémy Coutable
18313df12d Fix typo for ActiveModel::Serializer::Caching in the CHANGELOG 2013-05-22 16:54:27 +03:00
Damian Galarza
bbc3ae44cc Allow a controller to properly override scope_name 2013-05-21 21:24:50 -04:00
Santiago Pastorino
fd8cb67b85 Add CHANGELOG entries 2013-05-21 17:33:59 -07:00
Santiago Pastorino
86d993ea38 Merge branch 'refactor' 2013-05-21 17:04:16 -07:00
Santiago Pastorino
35608a8550 Move version.rb file to serializer directory 2013-05-21 17:03:09 -07:00
Santiago Pastorino
055f8fe33c AMS::Associations::Base is now AMS::Association. HasMany and HasOne inherits from it. 2013-05-21 17:03:08 -07:00