Module: ActiveRecord::ConnectionAdapters::Deduplicable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Column, MySQL::TypeMetadata, PostgreSQL::TypeMetadata, SqlTypeMetadata
- Defined in:
- lib/active_record/connection_adapters/deduplicable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #deduplicate ⇒ Object (also: #-@)
Instance Method Details
#deduplicate ⇒ Object Also known as: -@
18 19 20 |
# File 'lib/active_record/connection_adapters/deduplicable.rb', line 18 def deduplicate self.class.registry[self] ||= deduplicated end |