Moving permalink check action to enterprise controller

This commit is contained in:
Rob Harrington
2015-01-14 14:26:21 +11:00
parent e2268e53bb
commit c330e49a7f
5 changed files with 32 additions and 36 deletions

View File

@@ -53,19 +53,6 @@ module Admin
end
end
def check_permalink
path = Rails.application.routes.recognize_path( "/#{ params[:permalink].to_s }" )
if path && path[:controller] == "cms_content"
respond_to do |format|
format.js { render nothing: true, status: 200 }
end
else
respond_to do |format|
format.js { render nothing: true, status: 409 }
end
end
end
protected
def build_resource_with_address