Displaying 1 result from an estimated 1 matches for "autoload_at".
2011 Dec 13
0
Using ActiveSupport's autoload_at
After discovering
http://api.rubyonrails.org/classes/ActiveSupport/Autoload.html
I thought
it''d be nice if we could replace our zillion occurences of:
autoload :Something, ''some_path/something''
with:
autoload_at ''some_path'' do
autoload :Something
end
But I keep getting undefined method autoload_at. I tried digging -
ActionSupport::Autoload is being loaded by the time it reaches the above
line (I tested by putting a puts ''loaded'' in
activesupport/lib/active_support/dep...