Class: ActiveRecord::DynamicMatchers::FindOrCreateByBang

Inherits:
Instantiator
  • Object
show all
Defined in:
lib/active_record/deprecated_finders/dynamic_matchers.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Instantiator

#body, #deprecation_alternative, dispatch, #signature

Methods included from DeprecationWarning

#body, #deprecation_warning

Class Method Details

.prefixObject



191
192
193
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 191

def self.prefix
  "find_or_create_by"
end

.suffixObject



195
196
197
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 195

def self.suffix
  "!"
end

Instance Method Details

#instantiatorObject



199
200
201
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 199

def instantiator
  "create!"
end