Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.538 kB
require 'clearance/extensions/errors'
require 'clearance/extensions/rescue'
require 'clearance/authentication'
require 'clearance/user'
class ActionController::Routing::RouteSet
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
alias_method_chain :load_routes!, :clearance
end
Jump to Line
Something went wrong with that request. Please try again.