proglottis / ladder

Ladder tournament ranking website
ladders.pw
MIT License
19 stars 17 forks source link

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

Closed africanalex closed 8 years ago

africanalex commented 8 years ago

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: https://github.com/rails-api/active_model_serializers/issues/673#issuecomment-115820521

proglottis commented 8 years ago

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 8 years ago

this error only happened when running locally on beta mac os