Sha256: 34e66b1e7f2c98656d8b4131b5f54f133659691859991519b1e87317dc160e55

Contents?: true

Size: 469 Bytes

Versions: 23

Compression:

Stored size: 469 Bytes

Contents

if defined?(ActionController::Routing::RouteSet)
  class ActionController::Routing::RouteSet
    def load_routes_with_kitsune!
      lib_path = File.dirname(__FILE__)
      kitsune_routes = File.join(lib_path, *%w[.. .. .. config kitsune_routes.rb])
      unless configuration_files.include?(kitsune_routes)
        add_configuration_file(kitsune_routes)
      end
      load_routes_without_kitsune!
    end
    
    alias_method_chain :load_routes!, :kitsune
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
kitsune-0.1.5 lib/kitsune/extensions/routes.rb
kitsune-0.1.4 lib/kitsune/extensions/routes.rb
kitsune-0.1.3 lib/kitsune/extensions/routes.rb
kitsune-0.1.2 lib/kitsune/extensions/routes.rb
kitsune-0.1.1 lib/kitsune/extensions/routes.rb
kitsune-0.1.0 lib/kitsune/extensions/routes.rb
kitsune-0.0.19 lib/kitsune/extensions/routes.rb
kitsune-0.0.18 lib/kitsune/extensions/routes.rb
kitsune-0.0.17 lib/kitsune/extensions/routes.rb
kitsune-0.0.16 lib/kitsune/extensions/routes.rb
kitsune-0.0.14 lib/kitsune/extensions/routes.rb
kitsune-0.0.13 lib/kitsune/extensions/routes.rb
kitsune-0.0.12 lib/kitsune/extensions/routes.rb
kitsune-0.0.11 lib/kitsune/extensions/routes.rb
kitsune-0.0.10 lib/kitsune/extensions/routes.rb
kitsune-0.0.9 lib/kitsune/extensions/routes.rb
kitsune-0.0.8 lib/kitsune/extensions/routes.rb
kitsune-0.0.7 lib/kitsune/extensions/routes.rb
kitsune-0.0.6 lib/kitsune/extensions/routes.rb
kitsune-0.0.5 lib/kitsune/extensions/routes.rb