Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #134 from tomasc/master

Pass options of self.decorates_association to self.decorate
  • Loading branch information...
commit 0429403624c229e6ce7e50c91656b9710a3f2d50 2 parents b50fb9c + 85cb1b1
@steveklabnik steveklabnik 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.