mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Expose id writer not being set
This commit is contained in:
parent
87e929a255
commit
81d9766547
8
test/fixtures/poro.rb
vendored
8
test/fixtures/poro.rb
vendored
@ -1,7 +1,9 @@
|
||||
class Model < ActiveModelSerializers::Model
|
||||
rand(2).zero? && derive_attributes_from_names_and_fix_accessors
|
||||
|
||||
attr_writer :id
|
||||
if rand(2).zero?
|
||||
derive_attributes_from_names_and_fix_accessors
|
||||
else
|
||||
attr_writer :id
|
||||
end
|
||||
|
||||
# At this time, just for organization of intent
|
||||
class_attribute :association_names
|
||||
|
||||
Loading…
Reference in New Issue
Block a user