reback the wrong code to avoid the history of pagecontext being deleted
This commit is contained in:
parent
7c19c4d9a6
commit
fa852137f2
|
@ -33,7 +33,6 @@ class Admin::PageContentsController < OrbitAdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
PageContext.where("page_id" => params["page_context"]["page_id"]).destroy_all
|
|
||||||
@page_content = PageContext.new(update_params)
|
@page_content = PageContext.new(update_params)
|
||||||
@page_content.update_user_id = current_user.id
|
@page_content.update_user_id = current_user.id
|
||||||
@page_content.save
|
@page_content.save
|
||||||
|
|
Loading…
Reference in New Issue