Skip to content

Commit

Permalink
fix wrong delete in news_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
korotindev committed Mar 8, 2015
1 parent d823cf7 commit cc87cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/web/admin/news_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def update

def destroy
@news = News.find params[:id]
@news.destroy
@news.remove
redirect_to admin_news_index_path
end
end

0 comments on commit cc87cc9

Please sign in to comment.