Merge pull request #134 from tomasc/master

Pass options of self.decorates_association to self.decorate
This commit is contained in:
Steve Klabnik 2012-03-13 11:57:13 -07:00
commit 0429403624
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module Draper
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