lib/scrivito/test_request.rb in scrivito_sdk-1.9.1 vs lib/scrivito/test_request.rb in scrivito_sdk-1.10.0.rc1

- old
+ new

@@ -45,18 +45,16 @@ end end end end - class << self - def assign_parameters(routes, controller_path, *args) - super routes, controller_path, *args - rescue *ROUTING_ERRORS => e - begin - super routes, 'scrivito/cms_dispatch', *args - rescue *ROUTING_ERRORS - raise e - end + def self.assign_parameters(routes, controller_path, *args) + super routes, controller_path, *args + rescue *ROUTING_ERRORS => e + begin + super routes, 'scrivito/cms_dispatch', *args + rescue *ROUTING_ERRORS + raise e end end end def for_cms_object(*args)