lib/active_graph/node/persistence.rb in activegraph-10.0.0.pre.beta.11 vs lib/active_graph/node/persistence.rb in activegraph-10.0.0
- old
+ new
@@ -28,11 +28,11 @@
create_or_update
end
end
# Increments concurrently a numeric attribute by a centain amount
- # @param [Symbol, String] name of the attribute to increment
- # @param [Integer, Float] amount to increment
+ # @param [Symbol, String] attribute name of the attribute to increment
+ # @param [Integer, Float] by amount to increment
def concurrent_increment!(attribute, by = 1)
increment_by_query! query_as(:n), attribute, by
end
# Persist the object to the database. Validations and Callbacks are included