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