Class: ActiveRecord::DynamicMatchers::FindOrInitializeBy

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



167
168
169
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 167

def self.prefix
  "find_or_initialize_by"
end

Instance Method Details

#instantiatorObject



171
172
173
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 171

def instantiator
  "new"
end