method

_increment_attribute

_increment_attribute(attribute, value = 1)
private

No documentation available.

# File activerecord/lib/active_record/relation.rb, line 1416
      def _increment_attribute(attribute, value = 1)
        bind = predicate_builder.build_bind_attribute(attribute.name, value.abs)
        expr = table.coalesce(attribute, 0)
        expr = value < 0 ? expr - bind : expr + bind
        expr.expr
      end