Sha256: 8dd5dc67c897854eeb2b47ba3c1e8b015cc8198bf936ef0952023da44b4dd437

Contents?: true

Size: 252 Bytes

Versions: 16

Compression:

Stored size: 252 Bytes

Contents

module  Rspeckled
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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rspeckled-0.0.16 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.15 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.14 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.13 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.12 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.11 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.10 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.9 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.8 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.7 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.6 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.5 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.4 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.3 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.2 lib/rspeckled/plugins/rails/engine.rb
rspeckled-0.0.1 lib/rspeckled/plugins/rails/engine.rb