Commit graph

21 commits

Author SHA1 Message Date
Kyle Passarelli
beb9057b97 add support for 'current_user' 2013-10-07 19:30:20 -06:00
Jonathan Richard Henry Evans
02c2b1451b Bump version to 1.0.1 2013-09-09 13:19:02 +01:00
Jonathan Richard Henry Evans
47772b28e8 Bump version to 1.0.0 2013-09-09 13:10:41 +01:00
Jonathan Richard Henry Evans
639daa9e4f Moves EndpointExtension into grape-active_model_serializers folder as we are not directly monkeypatching 2013-09-09 12:41:24 +01:00
Jonathan Richard Henry Evans
251144d257 Changes root behaviour for arrays. If in a namspace the namespace name is used, if not the route name is used 2013-09-09 12:17:19 +01:00
Jonathan Richard Henry Evans
dddd528ea4 Refactors Formatter 2013-08-29 16:41:03 +01:00
Jonathan Richard Henry Evans
4cba68f095 remove unused class attribute 2013-08-29 15:53:10 +01:00
Jonathan Richard Henry Evans
ea019c721e Remove disabling inferrence as it is no longer handled by us 2013-08-29 15:50:10 +01:00
Jonathan Richard Henry Evans
6b9bf5976a Remove active_record require 2013-08-21 10:15:48 +01:00
Todd Eichel
5f3f4d5904 Use the same test for resource array-ness that ActiveModel::Serializers itself uses. This should be more reliable and it's probably good to conform to AM::Serializers behavior wherever possible. 2013-06-20 00:55:29 -07:00
John Allen
3b02d16211 Ensures there is a root available for arrays 2013-05-16 18:58:35 -04:00
John Allen
9d9f166925 Moves Grape::Endpoint extension into a module
Adding methods into the Grape::Endpoint class that
ActiveModel::Serializers are relying on from ActionController as well as
a few convenience methods for Route and Namespace options. I believe we
can expand on some of the empty methods here to allow for higher (api)
level option setting and defaults. This is a first step in that
direction.
2013-05-16 09:14:11 -04:00
John Allen
7f02d8f0d5 Removes unnecessary dependencies
There are some dependencies that are not required for this gem (eg.
tilt) that I'm removing. In addition some of the dependencies were only
necessary for development/test so I'm moving all of that into the gempsec and
making that clear there.
2013-05-16 09:06:37 -04:00
John Allen
f8aff8dff2 Makes Grape::Endpoint quack like an ActionController 2013-05-15 21:42:02 -04:00
John Allen
e5cf9bdf8c Adds support for namespace options 2013-05-15 20:47:32 -04:00
Dan deHavilland
2f69f318e0 Reinstated parameter passing 2013-05-14 12:57:38 +02:00
jrhe
c91aa686d4 removed accidentally added file 2013-04-30 21:40:01 +01:00
george
8022de2d54 Grape::ActiveModelSerializers for models with compound names
should generate the proper 'root' node for individual objects
  should generate the proper 'root' node for serialized arrays of objects
2013-04-30 14:20:18 -04:00
jrhe
517731792b Recoded to use active_model_serializer parameter of models/arrays and added array support 2013-04-10 19:36:25 +01:00
jrhe
65f6980dad Added the ability to turn off serializer inference 2013-04-04 21:07:05 +01:00
jrhe
1d2b6de7ea Initial commit 2013-04-04 20:10:51 +01:00