Commit Graph

5 Commits

Author SHA1 Message Date
Raphael Pereira
fd5cd879f8 Added test case for association propagating options 2015-03-28 13:24:03 -03:00
Robin Daugherty
2a1d9346f6 Test to cover serialization_options 2014-10-12 19:25:38 -04:00
Tim Petricola
14b1df5c36 Custom options are accessible in serializer (via :context) 2014-07-28 13:10:02 -04:00
Santiago Pastorino
5fa4002039 Allow only to pass scope to associations
Closes #483
2014-01-03 19:48:01 -02:00
Jason Truluck
a110df6caf Add @options back into serializers to maintain the functionality of render :json as noted in the docs
This functionality used to exist in v0.8.1. This adds the ability to
pass other options that will be usable in the serializer via the
options accessor.

This works by adding an attr_accessor for options so it is available
and is set by the remaining options in the provided options hash during
initialization.
2013-11-12 12:57:31 -05:00