Class: ActiveRecord::DynamicMatchers::FindOrCreateByBang
- Inherits:
-
Instantiator
- Object
- Method
- Instantiator
- ActiveRecord::DynamicMatchers::FindOrCreateByBang
show all
- Defined in:
- lib/active_record/deprecated_finders/dynamic_matchers.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#body, #deprecation_alternative, dispatch, #signature
#body, #deprecation_warning
Class Method Details
.prefix ⇒ Object
191
192
193
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 191
def self.prefix
"find_or_create_by"
end
|
.suffix ⇒ Object
195
196
197
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 195
def self.suffix
"!"
end
|
Instance Method Details
#instantiator ⇒ Object
199
200
201
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 199
def instantiator
"create!"
end
|