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

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -