def require_in_components(volt_app)
      if RUBY_PLATFORM == 'opal'
      else
        app_folders do |app_folder|
          # Sort so we get consistent load order across platforms
          Dir["#{app_folder}/*/{controllers,models,tasks}/*.rb"].each do |ruby_file|
            path = ruby_file.gsub(/^#{app_folder}\//, '')[0..-4]
            require(path)
          end
        end

        # Delay the loading of views
        volt_app.templates.template_loader = -> { load_views_and_routes(volt_app) }
        volt_app.url.routes_loader = -> { load_views_and_routes(volt_app) }
      end
    end
def require_in_components(volt_app)
      if RUBY_PLATFORM == 'opal'
      else
        app_folders do |app_folder|
          # Sort so we get consistent load order across platforms
          Dir["#{app_folder}/*/{controllers,models,tasks}/*.rb"].each do |ruby_file|
            path = ruby_file.gsub(/^#{app_folder}\//, '')[0..-4]
            require(path)
          end
        end

        # Delay the loading of views
        volt_app.templates.template_loader = -> { load_views_and_routes(volt_app) }
        volt_app.url.routes_loader = -> { load_views_and_routes(volt_app) }
      end
    end
Makes each components classes available on the load path, require classes.