Skip to content
Browse files

Merge pull request #134 from tomasc/master

Pass options of self.decorates_association to self.decorate
  • Loading branch information...
2 parents b50fb9c + 85cb1b1 commit 0429403624c229e6ce7e50c91656b9710a3f2d50 @steveklabnik steveklabnik committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/draper/base.rb
View
2 lib/draper/base.rb
@@ -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 0429403

Please sign in to comment.
Something went wrong with that request. Please try again.