Class: ActiveRecord::DynamicMatchers::FindByBang
- 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, #valid?
Constructor Details
This class inherits a constructor from ActiveRecord::DynamicMatchers::Method
Class Method Details
.prefix ⇒ Object
109 110 111 |
# File 'lib/active_record/dynamic_matchers.rb', line 109 def self.prefix "find_by" end |
.suffix ⇒ Object
113 114 115 |
# File 'lib/active_record/dynamic_matchers.rb', line 113 def self.suffix "!" end |
Instance Method Details
#finder ⇒ Object
117 118 119 |
# File 'lib/active_record/dynamic_matchers.rb', line 117 def finder "find_by!" end |