Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove decorated associations #13

Merged
merged 1 commit into from
Dec 25, 2015
Merged

Conversation

johno
Copy link
Owner

@johno johno commented Dec 24, 2015

In an attempt to keep this gem as simple as possible,
I've opted to remove the automatic decoration of associations.
I believe this will keep things more explicit and remove a
bit of the magic that was occurring.

Decoration of associations can still occur, only they will need
to be explicity called. Something along the lines of:

def account
  decorate(@delegated_object.account)
end

Related #3, #10

In an attempt to keep this gem as simple as possible,
I've opted to remove the automatic decoration of associations.
I believe this will keep things more explicit and remove a
bit of the magic that was occurring.

Decoration of associations can still occur, only they will need
to be explicity called. Something along the lines of:

    def account
      decorate(@delegated_object.account)
    end

***

Related #3, #10
johno added a commit that referenced this pull request Dec 25, 2015
@johno johno merged commit 0283770 into master Dec 25, 2015
@johno johno deleted the remove-associations-decoration branch December 25, 2015 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant