123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::ConnectionAdapters::Deduplicable

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: activerecord/lib/active_record/connection_adapters/deduplicable.rb

Class Method Summary

::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

Instance Method Summary

Instance Method Details

#-@

Alias for #deduplicate.

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/deduplicable.rb', line 21

alias :-@ :deduplicate

#deduplicate Also known as: #-@

[ GitHub ]

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

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

#deduplicated (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/connection_adapters/deduplicable.rb', line 24

def deduplicated
  freeze
end