Remove useless destroy methods
This commit is contained in:
parent
cbe3ccc6fe
commit
cf4a6c0b35
|
@ -60,7 +60,6 @@ class Admin::LinksController < ApplicationController
|
|||
def destroy
|
||||
@item = Link.find(params[:id])
|
||||
@item.destroy
|
||||
@item.destroy_i18n_variable
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_items_url
|
||||
|
|
|
@ -70,8 +70,6 @@ class Admin::PagesController < ApplicationController
|
|||
def destroy
|
||||
@item = Page.find(params[:id])
|
||||
@item.destroy
|
||||
@item.destroy_page_parts
|
||||
@item.destroy_i18n_variable
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to admin_items_url( :parent_id => @item.parent_id )
|
||||
|
|
Reference in New Issue