Class: ActiveRecord::DynamicMatchers::FindBy

Inherits:
Method
  • Object
show all
Defined in:
lib/active_record/dynamic_matchers.rb

Instance Attribute Summary

Attributes inherited from Method

#attribute_names, #model, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Method

#define, #initialize, match, pattern, suffix, #valid?

Constructor Details

This class inherits a constructor from ActiveRecord::DynamicMatchers::Method

Class Method Details

.prefixObject



96
97
98
# File 'lib/active_record/dynamic_matchers.rb', line 96

def self.prefix
  "find_by"
end

Instance Method Details

#finderObject



100
101
102
# File 'lib/active_record/dynamic_matchers.rb', line 100

def finder
  "find_by"
end