私が次のことをした場合:
user = User.new
user.extend Customer
user.is_a? Customer == true
それはうまくいきます。
ただし、次のことを行うと(プロファイルはモンゴイドモデルであり、ユーザーは埋め込まれています):
profile = Profile.all.first
profile.user.extend Customer
profile.user.is_a? Customer == false
ユーザーはもはや顧客ではありません。これには単純な理由があるはずですが、私にはわかりません。
編集:ユーザーとプロファイルはモンゴイドモデルです。profile.user.class=ユーザーおよびprofile.class=プロファイル。