method
regroup!
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::QueryMethods
regroup!(*args)public
Same as #regroup but operates on relation in-place instead of copying.
# File activerecord/lib/active_record/relation/query_methods.rb, line 592
def regroup!(*args) # :nodoc:
self.group_values = args
self
end Related methods
- Instance methods
- _select!
- and
- and!
- annotate
- annotate!
- arel
- construct_join_dependency
- create_with
- create_with!
- distinct
- distinct!
- eager_load
- eager_load!
- excluding
- excluding!
- extending
- extending!
- extract_associated
- from
- from!
- group
- group!
- having
- having!
- in_order_of
- includes
- includes!
- invert_where
- invert_where!
- joins
- joins!
- left_joins
- left_outer_joins
- left_outer_joins!
- limit
- limit!
- lock
- lock!
- none
- none!
- null_relation?
- offset
- offset!
- optimizer_hints
- optimizer_hints!
- or
- or!
- order
- order!
- preload
- preload!
- readonly
- readonly!
- references
- references!
- regroup
- regroup!
- reorder
- reorder!
- reselect
- reselect!
- reverse_order
- reverse_order!
- rewhere
- select
- skip_preloading!
- skip_query_cache!
- strict_loading
- strict_loading!
- structurally_compatible?
- uniq!
- unscope
- unscope!
- where
- where!
- with
- with!
- with_recursive
- with_recursive!
- without
- Protected methods
-
arel_columns -
async! -
build_having_clause -
build_subquery -
build_where_clause - Private methods
-
arel_column -
arel_columns_from_hash -
assert_modifiable! -
async -
build_arel -
build_bound_sql_literal -
build_case_for_value_position -
build_cast_value -
build_from -
build_join_buckets -
build_join_dependencies -
build_joins -
build_named_bound_sql_literal -
build_order -
build_select -
build_with -
build_with_expression_from_value -
build_with_join_node -
build_with_value_from_hash -
check_if_method_has_arguments! -
column_references -
does_not_support_reverse? -
each_join_dependencies -
extract_table_name_from -
flattened_args -
lookup_table_klass_from_join_dependencies -
order_column -
preprocess_order_args -
process_select_args -
process_with_args -
resolve_arel_attributes -
reverse_sql_order -
sanitize_order_arguments -
select_association_list -
select_named_joins -
structurally_incompatible_values_for -
table_name_matches? -
validate_order_args