lib/jets/router/route.rb in jets-2.1.1 vs lib/jets/router/route.rb in jets-2.1.2
- old
+ new
@@ -57,9 +57,10 @@
controller = [mod, controller].compact.join('/') # add module
"#{controller}##{action}"
end
def compute_as
+ return nil if @options[:as] == :disabled
return unless @options[:method] == :get || @options[:root]
controller, action = get_controller_action(@options)
klass = if @options[:root]
Jets::Router::MethodCreator::Root