Sha256: f891c4a45c6f6c1f51f43752a4a4bd228435dbf4a43a295b75a381cade15a7c2

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

module CodeKindly
  module Utils
    class Database
      class << self
        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codekindly-utils-0.0.1 lib/code_kindly/utils/database.rb