Re: [Rails-core] Wrong autoload

2014-06-12 Thread Xavier Noria
I suspect it could be a combination of factors. This is something that could explain what you see: 1. Parser::Typography::Base is autoloaded 2. Parser::Typography::CharTypographer is autoloaded 3. Files change and a new request comes 4. Parser::Base is autoloaded 5.

[Rails-core] Wrong autoload

2014-06-11 Thread Ilya Kantor
Hi, I have Parser::Typography::CharTypographer, in parser/typography/char_typographer.rb: ``` require File.expand_path(../base, __FILE__) module Parser module Typography class CharTypographer Base ... ``` Sometimes (not always) it inherits from Parser::Base as seen in

Re: [Rails-core] Wrong autoload

2014-06-11 Thread Luis Ferreira
Hi Ilya, This is not the appropriate mailing list for that, this one is only to discuss rails core features and bugs, but try to inherit from ::Base, instead of Base. On Wednesday, 11 June 2014, Ilya Kantor ilia...@gmail.com wrote: Hi, I have Parser::Typography::CharTypographer, in

Re: [Rails-core] Wrong autoload

2014-06-11 Thread Ilya Kantor
Hi, The behavior feels like a bug that's why I posted it here. Kind of strange when I explicitly require base class and the inheritance still goes wrong. Hi Ilya, This is not the appropriate mailing list for that, this one is only to discuss rails core features and bugs, but try to