Skip to content

Refactor attributes #1263

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

Closed
wants to merge 3 commits into from
Closed

Conversation

beauby
Copy link
Contributor

@beauby beauby commented Oct 9, 2015

No description provided.

@beauby beauby force-pushed the refactor-attributes branch from f97da70 to 4c115e0 Compare October 10, 2015 15:21
if self.class._attributes_values[name]
instance_eval(&self.class._attributes_values[name])
elsif respond_to?(name) # To handle legacy method-based attr overriding
warn 'Overriding attributes by defining a method on the serializer is deprecated. Please use the block syntax.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this warning have a reference to more information about this decision?

@NullVoxPopuli
Copy link
Contributor

needs rebase

@beauby
Copy link
Contributor Author

beauby commented Oct 28, 2015

@NullVoxPopuli Will rebase and improve when/if we merge #1262 (which this PR relies on).

@bf4
Copy link
Member

bf4 commented Dec 14, 2015

@beauby Is there anything in this PR that remains to be done against master?

@beauby
Copy link
Contributor Author

beauby commented Dec 27, 2015

Closing as equivalent changes have been merged from other PRs.

@beauby beauby closed this Dec 27, 2015
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.

3 participants