ActiveSupport autoload_at

What does below code means?

autoload_at "action_view/template/resolver" do
   autoload :Resolver
   autoload :PathResolver
   autoload :FileSystemResolver
   autoload :OptimizedFileSystemResolver
   autoload :FallbackFileSystemResolver
end

Pretty simple, it will load all Modules in that block in action_view/template/resolver.rb file.

blog comments powered by Disqus