Class: ActionController::Routing::RouteSet

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

Instance Method Summary collapse

Instance Method Details

#add_configuration_file_with_kitsune(file) ⇒ Object



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

def add_configuration_file_with_kitsune(file)
  lib_path = File.dirname(__FILE__)
  kitsune_routes = File.join(lib_path, *%w[.. .. .. config kitsune_routes.rb])
  if configuration_files.include?(kitsune_routes)
    self.configuration_files.delete(kitsune_routes)
  end
  add_configuration_file_without_kitsune(file)
  add_configuration_file_without_kitsune(kitsune_routes)
end