method

attribute_names

rails latest stable - Class: ActiveRecord::DynamicMatchers::Method

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

attribute_names(model, name)
private

No documentation available.

# File activerecord/lib/active_record/dynamic_matchers.rb, line 51
            def attribute_names(model, name)
              attribute_names = name.match(pattern)[1].split("_and_")
              attribute_names.map! { |name| model.attribute_aliases[name] || name }
            end