Skip to content

Commit 6e32883

Browse files
committed
Removes deprecation warning on content controller
1 parent 0a85d8a commit 6e32883

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/controllers/cms/content_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,11 @@ def assign(key, value)
6464
end
6565

6666
private
67-
6867
def render_editing_frame
6968
@page_title = @page.page_title
7069

7170
# Adds all provided parameters to the iframe
72-
@edit_page_path = ActionDispatch::Http::URL.url_for(path: edit_content_path(current_page), params: params.except(:controller, :action, :path), only_path: true)
71+
@edit_page_path = edit_content_path(current_page, params.except(:controller, :action, :path).permit! )
7372
render 'editing_frame', :layout => 'cms/page_editor'
7473
end
7574

lib/cms/behaviors/publishing.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def save_draft
114114
# Publishes the latest draft version of a block. See .publish for more documentation. Can throw errors if publishing failed for unexpected reasons.
115115
# Note: Having separate .publish! and .publish methods is probably no longer necessary. In practice, only .publish is probably needed.
116116
# @return [Boolean] true if the block had a draft that was published, false otherwise.
117-
require 'pry'
118117
def publish!
119118
did_publish = false
120119
if new_record?

0 commit comments

Comments
 (0)