Yehuda Katz
8376a4dcd1
Merge pull request #69 from teeparham/array-serializer
...
Array serializer should support Hash, AMS, and PORO
2012-06-05 00:23:17 -07:00
Yehuda Katz
dc942f47c1
Merge pull request #68 from teeparham/unique-test-methods
...
rename test methods so the tests run
2012-06-05 00:22:14 -07:00
Yehuda Katz
9919f28f4d
Merge pull request #75 from mauriciopasquier/master
...
fixing docs
2012-06-05 00:18:31 -07:00
Mauricio Pasquier Juan
7e80bce835
missing and duplicated id
2012-06-04 12:18:42 -03:00
José Valim
84aa3bc148
Merge pull request #73 from alindeman/rails-3-0-x
...
`rails generate` runs correctly under Rails 3.0.x
2012-06-01 07:10:59 -07:00
Andy Lindeman
9a3bd4770a
rails generate runs correctly under Rails 3.0.x
...
* Rails 3.0.x does not yield `app` to `generator` blocks in railties.
Picks a hopefully reasonable default `Rails.application` in that case.
* Fixes #71
2012-06-01 10:08:58 -04:00
Tee Parham
f35a2261d2
support different serializations in ArraySerializer
...
ArraySerializer can serialize arrays of Hash, ActiveModel::Serializer,
or any PORO that responds to :as_json
Each item in the array should not include its type as a root element,
since normal arrays do not do this. If you want "typed" collections,
don't use an Array.
2012-05-30 14:52:52 -06:00
Tee Parham
00db4dd6db
rename test methods so tests run
...
incidentally test_array_serializer_with_root fails
2012-05-30 11:14:49 -06:00
Tee Parham
9962069ae9
delete identical test
2012-05-30 10:55:35 -06:00
José Valim
5beecd5947
Fix the build on 1.8.7 :trollface:
2012-05-17 19:28:15 +02:00
José Valim
37d894f94e
Fix build the correct way, ensure new apps work, closes #63
2012-05-17 19:18:01 +02:00
José Valim
7a093afd03
Revert "Fix build for real"
...
This reverts commit 43f32c868a .
2012-05-17 19:16:11 +02:00
Yehuda Katz
56b61b1532
Add URL to serializers ( closes #61 )
...
Thanks so much to @vanstee for the initial
implementation!
2012-05-16 18:35:30 -07:00
Yehuda Katz
43f32c868a
Fix build for real
2012-05-16 18:28:24 -07:00
Yehuda Katz
c6b1cea4bc
Fix the build
2012-05-16 18:26:57 -07:00
Yehuda Katz
5f4f6a3483
Merged on_load
2012-05-16 18:17:21 -07:00
Yehuda Katz
0f1ec7a3cf
Add support for customizing fields
2012-05-16 18:13:59 -07:00
James A. Rosen
4c17a22207
add ActiveSupport.on_load announcement
2012-05-16 15:31:32 -07:00
tomhuda
33d4842dcd
Prep for 0.5.0
2012-05-16 14:17:10 -07:00
José Valim
2c151438b1
Merge pull request #59 from stayce/master
...
Updated Readme
2012-05-16 12:04:53 -07:00
stayce
74a2846f78
updated and clarified readme. changed PostController to PostsController as it would be generated by rails. Also changed ApplicationSerializer to ActiveModel::Serializer
2012-05-16 11:54:57 -07:00
Yehuda Katz
a2d73faa63
Generate a serializer with each new model
2012-04-30 17:18:51 -07:00
Yehuda Katz
d5d917ea56
Don't require current_user
2012-04-30 17:18:51 -07:00
José Valim
a2b0649e28
Merge pull request #53 from cowboyd/patch-1
...
grammar fix/simplification.
2012-04-26 12:55:44 -07:00
Charles Lowell
fa790fda4d
grammar fix/simplification.
2012-04-26 14:40:13 -05:00
Yehuda Katz
6a2103bcb6
Merge pull request #48 from joliss/simplify
...
Simplify code
2012-04-25 10:51:42 -07:00
José Valim
d1758ac619
Merge pull request #49 from joliss/doc
...
Doc
2012-04-17 07:05:49 -07:00
Jo Liss
5b41e648c9
Wrap text to 80 columns
2012-04-17 16:03:46 +02:00
Jo Liss
709218119b
Use two spaces instead of tabs; use syntax-highlighting
2012-04-17 16:03:43 +02:00
Jo Liss
67d5eefd8e
Simplify code
2012-04-17 15:54:34 +02:00
José Valim
93d0cb5117
Merge pull request #42 from vosechu/updated-docs
...
updating docs to remove comments about generators and clarifying default...
2012-04-14 08:23:57 -07:00
José Valim
5f0bb6d148
Merge pull request #43 from ctide/master
...
Add a :root option when defining associations
2012-02-22 22:16:21 -08:00
ctide
f17e4cde39
Add a :root option to associations, which enables you to define what the root level key will be for the associated objects.
2012-02-22 19:35:10 -08:00
Chuck Vose
a0e08377fa
clarify how to get old-style json without needing a monkey-patch
2012-02-15 10:39:49 -08:00
Chuck Vose
2b2f3e62e8
updating docs to remove comments about generators and clarifying default to_json functionality
2012-02-14 14:08:47 -08:00
José Valim
2f6d1e26ed
Merge pull request #41 from jbrown/fix_comment
...
Fix comment.
2012-02-14 12:46:32 -08:00
Justin Brown
19c0b35473
Fix comment.
2012-02-14 15:39:46 -05:00
José Valim
ad14384090
Update MIT-LICENSE.txt
2012-02-14 21:28:16 +01:00
José Valim
9c66ff1fba
Merge pull request #40 from elc/license
...
License
2012-02-14 12:27:45 -08:00
Josh Ballanco
b6658798f4
Remove license notice from lib file
2012-02-14 15:11:24 -05:00
Josh Ballanco
58bf8c14f3
Add the MIT license
...
[closes #33 ]
2012-02-14 14:20:47 -05:00
Yehuda Katz
a0d02b43a5
Merge pull request #29 from onehouse/master
...
github repo reference update
2012-01-30 23:08:59 -08:00
Elliot Larson
7b59dec135
fixing github repo reference in README documentation
2012-01-24 10:55:39 -08:00
Yehuda Katz
0b30518ad8
Merge pull request #28 from carllerche/master
...
Allow specifying the serializer class in the render options (+ other tiny fix)
2012-01-20 12:20:54 -08:00
Carl Lerche
46f18343cd
Add an options attr_reader in the ArraySerializer
2012-01-20 12:17:51 -08:00
Carl Lerche
4e8a2af1ec
Allow passing in the serializer class from the render method
2012-01-20 12:17:37 -08:00
tomhuda
dd32f91a25
Optimize merging associations
2012-01-16 12:12:00 -08:00
Yehuda Katz
28aad30f4e
Update README
2012-01-11 21:36:36 -07:00
Yehuda Katz
55647286da
Make it possible to supply default serializer
...
options in a controller.
2012-01-11 21:30:10 -07:00
Yehuda Katz
671fc14888
remove scope as a separate concept and pass it in
...
as an option.
2012-01-11 21:16:02 -07:00