Module: ActiveRecord::ConnectionAdapters::Deduplicable
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
Column ,
ActiveRecord::ConnectionAdapters::MySQL::Column,
ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata,
ActiveRecord::ConnectionAdapters::NullColumn,
ActiveRecord::ConnectionAdapters::PostgreSQL::Column,
ActiveRecord::ConnectionAdapters::PostgreSQL::TypeMetadata,
ActiveRecord::ConnectionAdapters::SqlTypeMetadata
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
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. |
Instance Method Summary
-
#-@
Alias for #deduplicate.
- #deduplicate (also: #-@)
Instance Method Details
#-@
Alias for #deduplicate.
# 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