Class: ActivePStore::DynamicMatchers::FindByBang
- Defined in:
- lib/active_pstore/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
Constructor Details
This class inherits a constructor from ActivePStore::DynamicMatchers::Method
Class Method Details
.prefix ⇒ Object
108 109 110 |
# File 'lib/active_pstore/dynamic_matchers.rb', line 108 def self.prefix 'find_by' end |
.suffix ⇒ Object
112 113 114 |
# File 'lib/active_pstore/dynamic_matchers.rb', line 112 def self.suffix '!' end |
Instance Method Details
#finder ⇒ Object
116 117 118 |
# File 'lib/active_pstore/dynamic_matchers.rb', line 116 def finder 'find_by!' end |