Skip to content

Commit

Permalink
pass .decorates_association options to .decorate method
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasc committed Feb 26, 2012
1 parent de2d62c commit 85cb1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draper/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def self.decorates_association(association_symbol, options = {})
options[:with].decorate(orig_association)
else
reflection = model.class.reflect_on_association(association_symbol)
"#{reflection.klass}Decorator".constantize.decorate(orig_association)
"#{reflection.klass}Decorator".constantize.decorate(orig_association, options)
end
end
end
Expand Down

0 comments on commit 85cb1b1

Please sign in to comment.