method

set

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: UpdateManager
set(values) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/arel/update_manager.rb, line 18
    def set(values)
      if String === values
        @ast.values = [values]
      else
        @ast.values = values.map { |column, value|
          Nodes::Assignment.new(
            Nodes::UnqualifiedColumn.new(column),
            value
          )
        }
      end
      self
    end
Register or log in to add new notes.