class ActiveRecord::PredicateBuilder
def convert_dot_notation_to_hash(attributes)
Experimental RBS support (using type sampling data from the type_fusion
project).
def convert_dot_notation_to_hash: (Hash attributes) -> untyped
This signature was generated using 3 samples from 1 application.
def convert_dot_notation_to_hash(attributes) dot_notation = attributes.select do |k, v| k.include?(".") && !v.is_a?(Hash) end dot_notation.each_key do |key| table_name, column_name = key.split(".") value = attributes.delete(key) attributes[table_name] ||= {} attributes[table_name] = attributes[table_name].merge(column_name => value) end attributes end