Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Pass options of self.decorates_association to self.decorate #134

Merged
merged 1 commit into from Mar 13, 2012

Conversation

Projects
None yet
3 participants
Contributor

tomasc commented Feb 26, 2012

This allows to set { infer: true } in self.decorates_association and in turn decorate each member of polymorphic association with decorator inferred from its own class.

class DocumentDecorator < ApplicationDecorator
    decorates_association :items, { infer: true }
end

zachhale commented Mar 1, 2012

Please merge this!

steveklabnik added a commit that referenced this pull request Mar 13, 2012

Merge pull request #134 from tomasc/master
Pass options of self.decorates_association to self.decorate

@steveklabnik steveklabnik merged commit 0429403 into drapergem:master Mar 13, 2012

Owner

steveklabnik commented Mar 13, 2012

Sorry this took me so long!

Owner

steveklabnik commented Mar 13, 2012

And thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment