# frozen_string_literal: true 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