Skip to content

BUG: Expose id writer not being set#2075

Open
bf4 wants to merge 1 commit intomasterfrom
fix_model
Open

BUG: Expose id writer not being set#2075
bf4 wants to merge 1 commit intomasterfrom
fix_model

Conversation

@bf4
Copy link
Copy Markdown
Member

@bf4 bf4 commented Mar 13, 2017

No description provided.

Comment thread test/fixtures/poro.rb
if rand(2).zero?
derive_attributes_from_names_and_fix_accessors
else
attr_writer :id
Copy link
Copy Markdown
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