Add an options attr_reader in the ArraySerializer

This commit is contained in:
Carl Lerche 2012-01-20 12:17:51 -08:00
parent 4e8a2af1ec
commit 46f18343cd

View File

@ -32,7 +32,7 @@ module ActiveModel
# It serializes an array checking if each element that implements
# the +active_model_serializer+ method.
class ArraySerializer
attr_reader :object
attr_reader :object, :options
def initialize(object, options={})
@object, @options = object, options