Class: DataMapper::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/collection.rb

Instance Method Summary collapse

Instance Method Details

#countObject



3
4
5
6
# File 'lib/collection.rb', line 3

def count
  adapter = repository.adapter
  adapter.read_count query
end