Class: Cli::CollectionsCommand
- Inherits:
-
Thor
- Object
- Thor
- Cli::CollectionsCommand
- Defined in:
- app/lib/cli/collections_command.rb
Constant Summary collapse
- DESCRIPTION =
"manage collections"
Instance Method Summary collapse
Instance Method Details
#prune ⇒ Object
9 10 11 |
# File 'app/lib/cli/collections_command.rb', line 9 def prune Collection.find_each { it.destroy if it.models.empty? && it.collections.empty? } end |