Module: EngineRoutes

Defined in:
lib/hyrax/specs/engine_routes.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/hyrax/specs/engine_routes.rb', line 4

def self.included(base)
  base.routes { Hyrax::Engine.routes }
end

Instance Method Details

#main_appObject



8
9
10
# File 'lib/hyrax/specs/engine_routes.rb', line 8

def main_app
  Rails.application.class.routes.url_helpers
end