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
- #deduplicate ⇒ Object (also: #-@)
Methods included from ActiveSupport::Concern
append_features, class_methods, extended, included, prepend_features, prepended
Instance Method Details
#deduplicate ⇒ Object Also known as: -@
18 19 20 |
# File 'activerecord/lib/active_record/connection_adapters/deduplicable.rb', line 18 def deduplicate self.class.registry[self] ||= deduplicated end |