Class: ActionController::Routing::RouteSet

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

Instance Method Summary collapse

Instance Method Details

#load_routes_with_clearance!Object



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

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