Class: ActiveRecord::DynamicMatchers::FindByBang
- 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, #valid?
Constructor Details
This class inherits a constructor from ActiveRecord::DynamicMatchers::Method
Class Method Details
.prefix ⇒ Object
118 119 120 |
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 118 def self.prefix "find_by" end |
.suffix ⇒ Object
122 123 124 |
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 122 def self.suffix "!" end |
Instance Method Details
#finder ⇒ Object
126 127 128 |
# File 'activerecord/lib/active_record/dynamic_matchers.rb', line 126 def finder "find_by!" end |