#primary_key (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
123456789_123456789_123456789_123456789_123456789_
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
|
Classes:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
| Defined in: | activerecord/lib/active_record/relation/delegation.rb |
::ActiveSupport::Concern - Extended| class_methods | Define class methods from given block. |
| included | Evaluate given block in context of base class, so that you can write class macros here. |
| prepended | Evaluate given block in context of base class, so that you can write class macros here. |
| append_features, prepend_features | |
# File 'activerecord/lib/active_record/relation/delegation.rb', line 7
def delegated_classes [ ActiveRecord::Relation, ActiveRecord::Associations::CollectionProxy, ActiveRecord::AssociationRelation, ActiveRecord::DisableJoinsAssociationRelation, ] end
# File 'activerecord/lib/active_record/relation/delegation.rb', line 16
def uncacheable_methods @uncacheable_methods ||= ( delegated_classes.flat_map(&:public_instance_methods) - ActiveRecord::Relation.public_instance_methods ).to_set.freeze end
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 105
delegate :primary_key, :with_connection, :connection, :table_name, :transaction, :sanitize_sql_like, :unscoped, :name, to: :model
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
Boolean
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
Boolean (private)
# File 'activerecord/lib/active_record/relation/delegation.rb', line 149
def respond_to_missing?(method, _) super || model.respond_to?(method) end
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records
# File 'activerecord/lib/active_record/relation/delegation.rb', line 100
delegate :to_xml, :encode_with, :length, :each, :join, :intersect?, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_fs, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records