Class: ActiveRecord::Reflection::RuntimeReflection
- Inherits:
-
AbstractReflection
show all
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb
Overview
Instance Method Summary
collapse
#alias_candidate, #build_association, #build_scope, #chain, #check_validity_of_inverse!, #class_name, #constraints, #counter_cache_column, #counter_must_be_updated_by_has_many?, #has_cached_counter?, #inverse_of, #inverse_updates_counter_in_memory?, #inverse_which_updates_counter_cache, #join_scope, #join_scopes, #klass_join_scope, #scopes, #strict_loading?, #strict_loading_violation_message, #table_name, #through_reflection?
Constructor Details
#initialize(reflection, association) ⇒ RuntimeReflection
Returns a new instance of RuntimeReflection.
1059
1060
1061
1062
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb', line 1059
def initialize(reflection, association)
@reflection = reflection
@association = association
end
|
Instance Method Details
#aliased_table ⇒ Object
1068
1069
1070
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb', line 1068
def aliased_table
klass.arel_table
end
|
#all_includes ⇒ Object
1076
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb', line 1076
def all_includes; yield; end
|
#join_primary_key(klass = self.klass) ⇒ Object
1072
1073
1074
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb', line 1072
def join_primary_key(klass = self.klass)
@reflection.join_primary_key(klass)
end
|
1064
1065
1066
|
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/reflection.rb', line 1064
def klass
@association.klass
end
|