Class: Passages::EngineRouteCollection

Inherits:
RouteCollection show all
Defined in:
lib/passages/engine_route_collection.rb

Overview

Specialized collection class inherited from RouteCollection specifically

for routes of Engines (this Engine included)

Instance Attribute Summary

Attributes inherited from RouteCollection

#routes

Instance Method Summary collapse

Methods inherited from RouteCollection

#each

Constructor Details

#initialize(routes) ⇒ EngineRouteCollection

Returns a new instance of EngineRouteCollection.



8
9
10
# File 'lib/passages/engine_route_collection.rb', line 8

def initialize(routes)
  @routes = routes.reject { |h| h[:routes].all?(&:internal?) }
end