27 Jan '15, 12pm

@Caius @jafrog fortunately since 4.2 all that is at least documented (wrote it myself), see for this gotcha

if the class or module in which C is missing is Object let ns = '' else let M = the class or module in which C is missing if M is anonymous let ns = '' else let ns = M.name end end loop do # Look for a regular file. for dir in autoload_paths if the file "#{dir}/#{ns.underscore}/c.rb" exists load/require "#{dir}/#{ns.underscore}/c.rb" if C is now defined return else raise LoadError end end end # Look for an automatic module. for dir in autoload_paths if the directory "#{dir}/#{ns.underscore}/c" exists if ns is an empty string let C = Module.new in Object and return else let C = Module.new in ns.constantize and return end end end if ns is empty # We reached the top-level without finding the constant. raise NameError else if C exists in any of the parent namespaces # Qualified constants heuristic. raise NameError else # Try again in the parent namespace. let ns = the parent n...

Full article: http://edgeguides.rubyonrails.org/autoloading_and_reloadi...

Tweets

Singapore Dollar Is Weakest Since 2010

bloomberg.com 28 Jan '15, 2am

(Bloomberg) -- Singapore unexpectedly eased monetary policy, sending the currency to the weakest since 2010 against the U....

How to upgrade to Rails 4.2

rubyflow.com 28 Jan '15, 3pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...