class method self.attribute_names

Ruby on Rails 8.1.2

Since v8.1.2 Private

Signature

self.attribute_names(model, name)

No documentation comment.

Parameters

model req
name req
Source
# 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

Defined in activerecord/lib/active_record/dynamic_matchers.rb line 51 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::DynamicMatchers::Method

Type at least 2 characters to search.

↑↓ navigate · open · esc close