Class: CodeKindly::Utils::Database
- Inherits:
-
Object
- Object
- CodeKindly::Utils::Database
- Defined in:
- lib/code_kindly/utils/database.rb
Class Method Summary collapse
Class Method Details
.clear_scope(scope) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/code_kindly/utils/database.rb', line 5 def clear_scope (scope) if 0 == scope.count puts "Nothing to clear" else puts "Clearing #{scope.count} #{scope.name} records" scope.delete_all end end |