RP
Size: a a a
RP
NT
ŤB
YL
class Dityatco < ApplicationRecordи
belongs_to :item, polymorphic: true
end
class Papa < ApplicationRecordКак у
has_one :dityatco, as: :item
end
class Mama < ApplicationRecord
has_one :dityatco, as: :item
end
Dityatco
вытащить Papa
& Mama
?ŤB
ℹ🅿
ℹ🅿
YL
ℹ🅿
ℹ🅿
YL
YL
ℹ🅿
YL
ℹ🅿
YL
YL
ℹ🅿