mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Add ability to delete all tags (#2200)
* Add ability to delete all tags * Downcase resource for confirmation * Clean up deletion resource names * titleize button
This commit is contained in:
committed by
GitHub
parent
dcc43cb253
commit
c022e862aa
@@ -34,6 +34,11 @@ class TagsController < ApplicationController
|
||||
redirect_to tags_path, notice: t(".deleted")
|
||||
end
|
||||
|
||||
def destroy_all
|
||||
Current.family.tags.destroy_all
|
||||
redirect_back_or_to tags_path, notice: "All tags deleted"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_tag
|
||||
|
||||
Reference in New Issue
Block a user