Class: ActiveRecord::DynamicMatchers::FindBy

Inherits:
Method show all
Includes:
Finder
Defined in:
activerecord/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 included from Finder

#attributes_hash, #body, #result, #signature

Methods inherited from Method

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

Constructor Details

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

Class Method Details

.prefixObject



105
106
107
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 105

def self.prefix
  "find_by"
end

Instance Method Details

#finderObject



109
110
111
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 109

def finder
  "find_by"
end