module Konmari::Routes

Constants

VERSION

Public Class Methods

config() { |config| ... } click to toggle source

(see Konmari::Routes::Loader)

In your config/routes.rb file, use this method to configure and then load all routes for the specified application from the provided folder path.

@yield [config] The {Konmari::Routes::Configuration} object used to configure the application route drawer.

# File lib/konmari/routes.rb, line 14
def self.config
  Loader.new(Configuration.new.tap { |config| yield config}) if block_given?
end