Class Index [+]

Quicksearch

ActiveLdap::Schema::Syntaxes::OtherMailbox

Private Instance Methods

validate_normalized_value(value, original_value) click to toggle source
     # File lib/active_ldap/schema/syntaxes.rb, line 349
349:         def validate_normalized_value(value, original_value)
350:           type, mailbox = value.split('$', 2)
351: 
352:           if type.empty?
353:             return _("%s has no mailbox type") % original_value.inspect
354:           end
355: 
356:           if /(#{UNPRINTABLE_CHARACTER})/ =~ type
357:             format = _("%s has unprintable character in mailbox type: '%s'")
358:             return format % [original_value.inspect, $1]
359:           end
360: 
361:           if mailbox.blank?
362:             return _("%s has no mailbox") % original_value.inspect
363:           end
364: 
365:           nil
366:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.