def app_controllers_recursive(path)
      invalid_entries = ['..', '.', 'concerns']

      (Dir.entries(path) - invalid_entries).each do |entry|
        if File.directory?(path + entry)
          app_controllers_recursive(path + entry + '/')
        elsif File.extname(entry) == '.rb'
          parent_directory = File.dirname(path + entry).split(/\//).last

          container = if parent_directory == 'controllers'
            'default'
          else
            parent_directory
          end

          @controllers[container.to_sym] ||= []

          unless File.basename(path + entry, '.*') == 'application_controller'
            @controllers[container.to_sym] << File.basename(path + entry, '.*')
          end
        end
      end
      @controllers
    end
def app_controllers_recursive(path)
      invalid_entries = ['..', '.', 'concerns']

      (Dir.entries(path) - invalid_entries).each do |entry|
        if File.directory?(path + entry)
          app_controllers_recursive(path + entry + '/')
        elsif File.extname(entry) == '.rb'
          parent_directory = File.dirname(path + entry).split(/\//).last

          container = if parent_directory == 'controllers'
            'default'
          else
            parent_directory
          end

          @controllers[container.to_sym] ||= []

          unless File.basename(path + entry, '.*') == 'application_controller'
            @controllers[container.to_sym] << File.basename(path + entry, '.*')
          end
        end
      end
      @controllers
    end
All controller classes placed in :default scope