Class: ActionController::Routing::RouteSet
- Inherits:
-
Object
- Object
- ActionController::Routing::RouteSet
- Defined in:
- lib/spreadhead/extensions/routes.rb
Instance Method Summary collapse
Instance Method Details
#load_routes_with_spreadhead! ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/spreadhead/extensions/routes.rb', line 3 def load_routes_with_spreadhead! lib_path = File.dirname(__FILE__) spreadhead_routes = File.join(lib_path, *%w[.. .. .. config spreadhead_routes.rb]) if configuration_files.include?(Rails.configuration.routes_configuration_file) and not configuration_files.include?(spreadhead_routes) add_configuration_file(spreadhead_routes) end load_routes_without_spreadhead! end |