Method: DataMapper::Query::Direction#reverse!

Defined in:
lib/dm-core/query/direction.rb

#reverse!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
21
# File 'lib/dm-core/query/direction.rb', line 18

def reverse!
  @operator = @operator == :asc ? :desc : :asc
  self
end