Skip to Content Skip to Search

class ActiveRecord::DynamicMatchers::FindBy

Inherits From

Attributes

[R] pattern

Public class methods

Source code GitHub
# File activerecord/lib/active_record/dynamic_matchers.rb, line 84
def finder
  "find_by"
end
Source code GitHub
# File activerecord/lib/active_record/dynamic_matchers.rb, line 80
def match?(name)
  pattern.match?(name) && self
end

Definition files