mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add an options attr_reader in the ArraySerializer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user