Permalink
Browse files

Add an options attr_reader in the ArraySerializer

  • Loading branch information...
1 parent 4e8a2af commit 46f18343cdc25d13b07800ed9182906b6549d4f6 @carllerche carllerche committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 46f1834

Please sign in to comment.