Class: DataMapper::Validations::LengthValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/lokka.rb

Instance Method Summary collapse

Instance Method Details

#value_length(value) ⇒ Object



113
114
115
116
# File 'lib/lokka.rb', line 113

def value_length(value)
  value.force_encoding(Encoding.default_external)
  value_length_org(value)
end

#value_length_orgObject



112
# File 'lib/lokka.rb', line 112

alias :value_length_org :value_length