Sha256: 66902e5fa1c1a2f0bf3eb682154279c88cb903447fb928a8f02d3a2d10a223a8
Contents?: true
Size: 678 Bytes
Versions: 44
Compression:
Stored size: 678 Bytes
Contents
module Radiant module RoutingExtension def self.included(base) base.class_eval do alias :draw_without_plugin_routes :draw alias :draw :draw_with_plugin_routes end end def draw_with_plugin_routes draw_without_plugin_routes do |mapper| add_extension_routes(mapper) yield mapper end end private def add_extension_routes(mapper) Extension.descendants.each do |ext| ext.route_definitions.each do |block| block.call(mapper) end end end end end ActionController::Routing::RouteSet.class_eval { include Radiant::RoutingExtension }
Version data entries
44 entries across 44 versions & 4 rubygems