Skip to content

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