lib/scrivito/controller_helper.rb in scrivito_sdk-1.0.0 vs lib/scrivito/controller_helper.rb in scrivito_sdk-1.1.0.rc1

- old
+ new

@@ -18,11 +18,11 @@ # @return [String] # # @note +scrivito_path+ is also a helper method. # def scrivito_path(target, options = {}) - CmsRouting.new(request, main_app, scrivito_engine).path_or_url(target, "path", options) + CmsRouting.new(request, self, scrivito_engine).path_or_url(target, "path", options) end # # Returns the absolute URL of a CMS object. # @@ -36,10 +36,10 @@ # @return [String] # # @note +scrivito_url+ is also a helper method. # def scrivito_url(target, options = {}) - CmsRouting.new(request, main_app, scrivito_engine).path_or_url(target, "url", options) + CmsRouting.new(request, self, scrivito_engine).path_or_url(target, "url", options) end # # Returns whether the GUI is in the +editable+ view. #