Class: ActiveRecord::DynamicMatchers::FindOrCreateBy

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



179
180
181
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 179

def self.prefix
  "find_or_create_by"
end

Instance Method Details

#instantiatorObject



183
184
185
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 183

def instantiator
  "create"
end