ruby on rails - activerecord can't recognize the correct class when inside folders -
i have current structure
module1 interactions user module2 interactions person user < person
when load user module1, module1::user.first
, user loaded correctly when try load user module2 (module2::person.first
) got unable autoload constant user, expected module1/user.rb define it
. how can work?
edit: person
has column type
, value "user". sti
just solved using ignorable gem. didn't need sti in case, legacy database
Comments
Post a Comment