Class: ActionController::Routing::RouteSet

Inherits:
Object
  • Object
show all
Defined in:
lib/kitsune/extensions/routes.rb

Instance Method Summary collapse

Instance Method Details

#load_routes_with_kitsune!Object



3
4
5
6
7
8
9
10
# File 'lib/kitsune/extensions/routes.rb', line 3

def load_routes_with_kitsune!
  lib_path = File.dirname(__FILE__)
  kitsune_routes = File.join(lib_path, *%w[.. .. .. config kitsune_routes.rb])
  unless configuration_files.include?(kitsune_routes)
    add_configuration_file(kitsune_routes)
  end
  load_routes_without_kitsune!
end