module ActiveModel::AttributeMethods::ClassMethods
def attribute_method_patterns_matching(method_name)
def attribute_method_patterns_matching(method_name) attribute_method_patterns_cache.compute_if_absent(method_name) do attribute_method_patterns.filter_map { |pattern| pattern.match(method_name) } end end