search for: load_only_path

Displaying 1 result from an estimated 1 matches for "load_only_path".

Did you mean: load_only_paths
2010 Mar 01
4
Dependency loading confusion
Hey guys, I have a module Foo::Bar, which extends ActiveRecord::Base with some custom functionality. This module is in lib/foo/bar.rb. Inside this file is also the code, that includes the module into ActiveRecord::Base: module Foo module Bar # stuff ... end end ActiveRecord::Base.send(:include, Foo::Bar) Then, this file is required in config/initializers/foo.rb: