Class: ActionController::Routing::RouteSet

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

Instance Method Summary collapse

Instance Method Details

#load_routes_with_watchtower!Object



2
3
4
5
6
7
8
9
# File 'lib/watchtower/routes.rb', line 2

def load_routes_with_watchtower!
  lib_path = File.dirname(__FILE__)
  custom_routes = File.join(lib_path, *%w[.. .. config watchtower_routes.rb])
  unless configuration_files.include?(custom_routes)
    add_configuration_file(custom_routes)
  end
  load_routes_without_watchtower!
end