class ActiveValidation::Decorators::DisallowsDuplicatesRegistry
Public Instance Methods
==(other)
click to toggle source
# File lib/active_validation/decorators/disallows_duplicates_registry.rb, line 12 def ==(other) object_id == other.object_id end
register(name, item)
click to toggle source
# File lib/active_validation/decorators/disallows_duplicates_registry.rb, line 6 def register(name, item) return @component.register(name, item) unless registered?(name) raise Errors::DuplicateRegistryEntryError, "#{@component.name} already registered: #{name}" end