lib/active_graph/relationship/persistence.rb in activegraph-10.0.0.pre.beta.11 vs lib/active_graph/relationship/persistence.rb in activegraph-10.0.0
- old
+ new
@@ -35,12 +35,12 @@
def save!(*args)
save(*args) or fail(RelInvalidError, inspect) # rubocop:disable Style/AndOr
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(:r), attribute, by, :r
end
def create_model
@@ -63,10 +63,10 @@
self.class.query_as(neo_id, var)
end
module ClassMethods
# Creates a new relationship between objects
- # @param [Hash] props the properties the new relationship should have
+ # @param [Hash] args the properties the new relationship should have
def create(*args)
new(*args).tap(&:save)
end
# Same as #create, but raises an error if there is a problem during save.