Sha256: 4bbfd52d99e6fe06f62dad0297a31117a5ff7ef28b6e58e2571790d30124f3b9

Contents?: true

Size: 463 Bytes

Versions: 3

Compression:

Stored size: 463 Bytes

Contents

if defined?(ActionController::Routing::RouteSet)

  class ActionController::Routing::RouteSet
    def load_routes_with_assets!
      lib_path      = File.dirname(__FILE__)
      engine_routes = File.join(lib_path, *%w[.. .. .. .. config routes.rb])

      unless configuration_files.include?(engine_routes)
        add_configuration_file(engine_routes)
      end

      load_routes_without_assets!
    end

    alias_method_chain :load_routes!, :assets
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
engine-assets-0.2.1 lib/engine_assets/extensions/rails/routes.rb
engine-assets-0.2.0 lib/engine_assets/extensions/rails/routes.rb
engine-assets-0.1.0 lib/engine_assets/extensions/rails/routes.rb