Sha256: 729f94183364d610720d7466ef9f5d08d73b471e65157828e5f1c2fbfcbd4bb3

Contents?: true

Size: 301 Bytes

Versions: 15

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module  Rspeckled
module  Rails
module  NamespacedEngineControllerRouteFix
  def self.included(base)
    engine_name  = Dir.pwd.split('/').last.camelize
    engine_class = "::#{engine_name}::Engine".constantize

    base.routes { engine_class.routes }
  end
end
end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rspeckled-2.1.1 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-2.1.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-2.0.1 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-2.0.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.4.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.3.1 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.3.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.2.1 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.2.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.1.3 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.1.2 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.1.1 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.1.0 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.0.5 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb
rspeckled-1.0.4 lib/rspeckled/patches/rails/namespaced_engine_controller_route_fix.rb