Remove useless destroy methods

This commit is contained in:
Christophe Vilayphiou 2012-02-17 12:26:03 +08:00
parent cbe3ccc6fe
commit cf4a6c0b35
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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 )