Siempre guardar el valor de los campos booleanos
This commit is contained in:
parent
9b8c09cb00
commit
a242ceee68
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,11 @@ class MetadataBoolean < MetadataTemplate
|
|||
self[:value] = true_values.include? self[:value]
|
||||
end
|
||||
|
||||
# Siempre guardar el valor de este campo a menos que sea nulo
|
||||
def empty?
|
||||
!value.nil?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Los valores que evalúan a verdadero
|
||||
|
|
Loading…
Reference in a new issue