Class: ActiveRecord::DynamicMatchers::FindByBang

Inherits:
Method
  • Object
show all
Includes:
Finder
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 included from Finder

#attributes_hash, #body, #result, #signature

Methods inherited from Method

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

Constructor Details

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

Class Method Details

.prefixObject



123
124
125
# File 'lib/active_record/dynamic_matchers.rb', line 123

def self.prefix
  "find_by"
end

.suffixObject



127
128
129
# File 'lib/active_record/dynamic_matchers.rb', line 127

def self.suffix
  "!"
end

Instance Method Details

#finderObject



131
132
133
# File 'lib/active_record/dynamic_matchers.rb', line 131

def finder
  "find_by!"
end