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

BUG: Expose id writer not being set #2075

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

BUG: Expose id writer not being set #2075

wants to merge 1 commit into from

Conversation

bf4
Copy link
Member

@bf4 bf4 commented Mar 13, 2017

No description provided.

if rand(2).zero?
derive_attributes_from_names_and_fix_accessors
else
attr_writer :id
Copy link
Member Author

Choose a reason for hiding this comment

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

I found when using ActiveModelSerializers::Model.derive_attributes_from_names_and_fix_accessors and class SomeName < ActiveModelSerializers::Model; attributes :something; end in my own code, that SomeName.new(id: 'uuid') failed, as there was no attr_writer

@bf4 bf4 added the V: 0.10.x label Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant