2011-05-10から1日間の記事一覧

Autoload Path and Nest

I have tow files hoge.rb and baz.rb. app/models/hoge.rb class Hoge class Fuga Baz.new end end app/models/hoge/baz.rb class Baz end I have added the custom models to load path as follows.config/environment.rb config.autoload_paths += %W( #{…