method

compile_delete

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Crud
compile_delete(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 36
    def compile_delete(key = nil, having_clause = nil, group_values_columns = [])
      dm = DeleteManager.new(source)
      dm.take(limit)
      dm.offset(offset)
      dm.order(*orders)
      dm.wheres = constraints
      dm.key = key
      dm.group(group_values_columns) unless group_values_columns.empty?
      dm.having(having_clause) unless having_clause.nil?
      dm
    end
Register or log in to add new notes.