Sha256: c690341be57db82005c6beda6d598b842d00d2fec4b72c4a64f2e57243b89936

Contents?: true

Size: 480 Bytes

Versions: 18

Compression:

Stored size: 480 Bytes

Contents

if defined?(ActionController::Routing::RouteSet)
  class ActionController::Routing::RouteSet
    def load_routes_with_clearance!
      lib_path = File.dirname(__FILE__)
      clearance_routes = File.join(lib_path, *%w[.. .. .. config clearance_routes.rb])
      unless configuration_files.include?(clearance_routes)
        add_configuration_file(clearance_routes)
      end
      load_routes_without_clearance!
    end

    alias_method_chain :load_routes!, :clearance
  end
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
qrush-clearance-0.7.0 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.6.8 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.6.9 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.7.0 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.8.0 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.8.1 lib/clearance/extensions/routes.rb
thoughtbot-clearance-0.8.2 lib/clearance/extensions/routes.rb
tonkapark-clearance-0.6.9.1 lib/clearance/extensions/routes.rb
tonkapark-clearance-0.6.9.2 lib/clearance/extensions/routes.rb
tonkapark-clearance-0.6.9.3 lib/clearance/extensions/routes.rb
tonkapark-clearance-0.7.0.1 lib/clearance/extensions/routes.rb
tonkapark-clearance-0.7.0 lib/clearance/extensions/routes.rb
vita-clearance-0.6.9.1 lib/clearance/extensions/routes.rb
vita-clearance-0.6.9.2 lib/clearance/extensions/routes.rb
vita-clearance-0.6.9 lib/clearance/extensions/routes.rb
clearance-0.8.4 lib/clearance/extensions/routes.rb
clearance-0.8.3 lib/clearance/extensions/routes.rb
clearance-0.8.2 lib/clearance/extensions/routes.rb