Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pass .decorates_association options to .decorate method

  • Loading branch information...
commit 85cb1b1a451b8856cf80845000bda709c6920a42 1 parent de2d62c
@tomasc tomasc authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.