lib/reactive-router/component.rb in reactive-router-0.7.5 vs lib/reactive-router/component.rb in reactive-router-0.7.6
- old
+ new
@@ -1,32 +1,10 @@
module React
module Component
module ClassMethods
- def url_param_evaluators
- @url_param_evaluators ||= []
- end
- attr_accessor :evaluated_url_params
-
- def router_param(name, opts = {}, &block)
-
- method_name = opts[:as] || name
-
- url_param_evaluators << [name, block]
-
- class << self
- define_method method_name do
- evaluated_url_params[name]
- end
- end
-
- define_method method_name do
- self.class.send(method_name)
- end
-
- end
end
def route_handler(*args)
Router::RR::RouteHandler(*args)