Module: EacRailsUtils::Models::TablelessAssociations::OverrideMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- EacRailsUtils::Models::TablelessAssociations
- Defined in:
- lib/eac_rails_utils/models/tableless_associations/override_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#association(name) ⇒ Object
use by association accessor.
-
#new_record? ⇒ Boolean
dummy.
- #read_attribute(name) ⇒ Object (also: #_read_attribute)
-
#strict_loading? ⇒ Boolean
dummy.
-
#strict_loading_mode ⇒ Object
dummy.
-
#strict_loading_n_plus_one_only? ⇒ Boolean
dummy.
Instance Method Details
#association(name) ⇒ Object
use by association accessor
85 86 87 88 89 90 91 92 93 94 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 85 def association(name) # :nodoc: association = association_instance_get(name) if association.nil? association = association_by_reflection(name) association_instance_set(name, association) end association end |
#new_record? ⇒ Boolean
dummy
102 103 104 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 102 def new_record? false end |
#read_attribute(name) ⇒ Object Also known as: _read_attribute
96 97 98 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 96 def read_attribute(name) send(name) end |
#strict_loading? ⇒ Boolean
dummy
107 108 109 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 107 def strict_loading? false end |
#strict_loading_mode ⇒ Object
dummy
117 118 119 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 117 def strict_loading_mode :all end |
#strict_loading_n_plus_one_only? ⇒ Boolean
dummy
112 113 114 |
# File 'lib/eac_rails_utils/models/tableless_associations/override_methods.rb', line 112 def strict_loading_n_plus_one_only? false end |