Permalink
Browse files

pass .decorates_association options to .decorate method

  • Loading branch information...
1 parent de2d62c commit 85cb1b1a451b8856cf80845000bda709c6920a42 @tomasc tomasc committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/draper/base.rb
View
@@ -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

0 comments on commit 85cb1b1

Please sign in to comment.