Module: ActiveRecord::VirtualAttributes::VirtualFields::NonARModels

Defined in:
lib/active_record/virtual_attributes/virtual_fields.rb

Overview

rubocop:disable Style/SingleLineMethods

Instance Method Summary collapse

Instance Method Details

#add_autosave_association_callbacks(*_args) ⇒ Object



14
# File 'lib/active_record/virtual_attributes/virtual_fields.rb', line 14

def add_autosave_association_callbacks(*_args); self; end

#belongs_to_required_by_defaultObject



16
# File 'lib/active_record/virtual_attributes/virtual_fields.rb', line 16

def belongs_to_required_by_default; false; end

#dangerous_attribute_method?(_) ⇒ Boolean

Returns:

  • (Boolean)


10
# File 'lib/active_record/virtual_attributes/virtual_fields.rb', line 10

def dangerous_attribute_method?(_); false; end

#generated_association_methodsObject



12
# File 'lib/active_record/virtual_attributes/virtual_fields.rb', line 12

def generated_association_methods; self; end