lib/hyperloop/router/component.rb in hyper-router-4.0.1 vs lib/hyperloop/router/component.rb in hyper-router-4.1.1
- old
+ new
@@ -1,27 +1,10 @@
module Hyperloop
class Router
class Component
- def self.inherited(base)
- base.include(Hyperloop::Component::Mixin)
- base.include(HyperRouter::ComponentMethods)
-
- base.class_eval do
- param :match, default: nil
- param :location, default: nil
- param :history, default: nil
-
- define_method(:match) do
- params.match
- end
-
- define_method(:location) do
- params.location
- end
-
- define_method(:history) do
- params.history
- end
+ class << self
+ def inherited(base)
+ base.include(Mixin)
end
end
end
end
end