Class: Cli::TagsCommand
- Inherits:
-
Thor
- Object
- Thor
- Cli::TagsCommand
- Defined in:
- app/lib/cli/tags_command.rb
Constant Summary collapse
- DESCRIPTION =
"manage tags"
Instance Method Summary collapse
Instance Method Details
#purge ⇒ Object
9 10 11 12 13 |
# File 'app/lib/cli/tags_command.rb', line 9 def purge return unless ask("Are you sure you want to remove all tags?", limited_to: %w[y n]) == "y" ActsAsTaggableOn::Tagging.destroy_all ActsAsTaggableOn::Tag.destroy_all end |