Sha256: 54c22bafce937d4f41df622d5f8281495b0703abca034d1eea59091786ae33d6

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

if defined?(ActionController::Routing::RouteSet)
  class ActionController::Routing::RouteSet
    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
    
    alias_method_chain :add_configuration_file, :kitsune
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ds-kitsune-0.2.5 lib/kitsune/extensions/routes.rb
ds-kitsune-0.2.3 lib/kitsune/extensions/routes.rb
kitsune-0.2.1 lib/kitsune/extensions/routes.rb
kitsune-0.2.0 lib/kitsune/extensions/routes.rb