Module: Hammock::RouteFor

Defined in:
lib/hammock/route_for.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



3
4
5
6
7
8
9
10
# File 'lib/hammock/route_for.rb', line 3

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

  base.class_eval {
    helper_method :path_for, :nested_path_for, :route_for, :nested_route_for
  }
end