From 81d9766547d8a9cba142115b151c734f19254c7a Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 13 Mar 2017 10:17:26 -0500 Subject: [PATCH] Expose id writer not being set --- test/fixtures/poro.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/fixtures/poro.rb b/test/fixtures/poro.rb index 6245ad23d..21bb3e810 100644 --- a/test/fixtures/poro.rb +++ b/test/fixtures/poro.rb @@ -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