NoMethodError: undefined method `root=' for ActiveModel::Serializer:Class
africanalex opened this issue · 2 comments
africanalex commented
Error when running bundle exec rake db:setup
fixed by changing active_model_serializer.rb file from
ActiveModel::Serializer.root = false ActiveModel::ArraySerializer.root = false
to
ActiveModel::Serializer.config.adapter = :flatten_json
proglottis commented
Thanks for the report!
I think https://github.com/proglottis/ladder/tree/rails5 will fix this. I would have thought the locked versions of this gem would've been okay. Maybe not though.
africanalex commented
this error only happened when running locally on beta mac os