Module: ActiveRecord::ConnectionAdapters::Deduplicable

Extended by:
ActiveSupport::Concern
Included in:
Column, MySQL::TypeMetadata, PostgreSQL::TypeMetadata, SqlTypeMetadata
Defined in:
activerecord/lib/active_record/connection_adapters/deduplicable.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included, prepend_features, prepended

Instance Method Details

#deduplicateObject Also known as: [email protected]


18
19
20
# File 'activerecord/lib/active_record/connection_adapters/deduplicable.rb', line 18

def deduplicate
  self.class.registry[self] ||= deduplicated
end