所以,我有麻烦
\n\nPreloading instance dependent scopes are not supported.\nRun Code Online (Sandbox Code Playgroud)\n\n我有三个型号
\n\nPreloading instance dependent scopes are not supported.\nRun Code Online (Sandbox Code Playgroud)\n\nclass P < ApplicationRecord\n has_many :as\n has_many :cs\nend\nRun Code Online (Sandbox Code Playgroud)\n\nclass C < ApplicationRecord\n belongs_to :p\nend\nRun Code Online (Sandbox Code Playgroud)\n\n我有三个 fast_jsonapi 序列化器
\n\nclass A < ApplicationRecord\n belongs_to :p\n has_one :c, -> (a) { where(feature: a.feature) }, through: :p, source: :cs\nend\nRun Code Online (Sandbox Code Playgroud)\n\nclass PSerializer\n include FastJsonapi::ObjectSerializer\n has_many :as\nend\nRun Code Online (Sandbox Code Playgroud)\n\nclass CSerializer\n include FastJsonapi::ObjectSerializer\n belongs_to :p\nend\nRun Code Online (Sandbox Code Playgroud)\n\n还有这个种子文件
\n\nclass ASerializer\n include FastJsonapi::ObjectSerializer\n belongs_to …Run Code Online (Sandbox Code Playgroud)