mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Add an options attr_reader in the ArraySerializer
This commit is contained in:
parent
4e8a2af1ec
commit
46f18343cd
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user