Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove destroy action from TaxCategories Controller #35

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove destroy action from TaxCategories Controller
It doesn't do anything but the default functionality in
resource controller.

Don't need the specs for #update or #index since they are
using default resource controller actions and should be tested
there.
  • Loading branch information
Sean Taylor committed May 7, 2015
commit 445a1885984062b27c0e9d2d4a5c2b3b22c99867
13 changes: 0 additions & 13 deletions backend/app/controllers/spree/admin/tax_categories_controller.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
module Spree
module Admin
class TaxCategoriesController < ResourceController
def destroy
if @object.destroy
flash[:success] = flash_message_for(@object, :successfully_removed)
respond_with(@object) do |format|
format.html { redirect_to collection_url }
format.js { render :partial => "spree/admin/shared/destroy" }
end
else
respond_with(@object) do |format|
format.html { redirect_to collection_url }
end
end
end
end
end
end

This file was deleted.