Skip to content

Commit

Permalink
Add an options attr_reader in the ArraySerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Jan 20, 2012
1 parent 4e8a2af commit 46f1834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model/serializer.rb
Expand Up @@ -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
Expand Down

0 comments on commit 46f1834

Please sign in to comment.