Module: Hammock::RouteSetPatches

Defined in:
lib/hammock/monkey_patches/route_set.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Constant Summary collapse

MixInto =
ActionController::Routing::RouteSet

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



5
6
7
8
9
10
11
12
# File 'lib/hammock/monkey_patches/route_set.rb', line 5

def self.included base # :nodoc:
  base.send :include, InstanceMethods
  base.send :extend, ClassMethods

  base.class_eval {
    attr_accessor :route_map
  }
end