active-hash / active_hash

A readonly ActiveRecord-esque base class that lets you use a hash, a Yaml file or a custom file as the datasource
MIT License
1.2k stars 179 forks source link

Using ActiveHash::Associations and JSONAPISerializer at the same time will result NoMethodError. #236

Closed 1160054 closed 2 years ago

1160054 commented 2 years ago
スクリーンショット 2021-09-26 18 50 29

Controller

スクリーンショット 2021-09-26 19 00 26

Model

スクリーンショット 2021-09-26 18 55 05

Seriralizer

スクリーンショット 2021-09-26 19 01 44

How to fix

Pattern 1

スクリーンショット 2021-09-26 18 56 01

Pattern 2

スクリーンショット 2021-09-26 18 57 31
kbrock commented 2 years ago

think this is fixed.

Let me know if there is still an issue here.