method

compile_update

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Crud
compile_update( values, key = nil, having_clause = nil, group_values_columns = [] ) 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/crud.rb, line 17
    def compile_update(
      values,
      key = nil,
      having_clause = nil,
      group_values_columns = []
    )
      um = UpdateManager.new(source)
      um.set(values)
      um.take(limit)
      um.offset(offset)
      um.order(*orders)
      um.wheres = constraints
      um.key = key

      um.group(group_values_columns) unless group_values_columns.empty?
      um.having(having_clause) unless having_clause.nil?
      um
    end
Register or log in to add new notes.