lib/scrivito/cms_env.rb in scrivito_sdk-1.5.5 vs lib/scrivito/cms_env.rb in scrivito_sdk-1.6.0.rc1

- old
+ new

@@ -29,23 +29,19 @@ def find_obj found_obj = if params[:id] Obj.find(params[:id]) elsif params[:permalink].present? - self.class.find_permalink_by_param(params[:permalink]) + permalink = Array(params[:permalink]).join("/") + Obj.find_by_permalink!(permalink) else Scrivito::RequestHomepage.call(env) end found_obj end def params env["action_dispatch.request.path_parameters"] - end - - def self.find_permalink_by_param(permalink_param) - permalink = Array(permalink_param).join("/") - Obj.find_by_permalink!(permalink) end end end