Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add an options attr_reader in the ArraySerializer

  • Loading branch information...
commit 46f18343cdc25d13b07800ed9182906b6549d4f6 1 parent 4e8a2af
@carllerche carllerche authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_model/serializer.rb
View
2  lib/active_model/serializer.rb
@@ -32,7 +32,7 @@ def to_a
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.