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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -