proglottis/ladder

NoMethodError: undefined method `root=' for ActiveModel::Serializer:Class

africanalex opened this issue · 2 comments

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

source:
rails-api/active_model_serializers#673 (comment)

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.

this error only happened when running locally on beta mac os