5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:51:41 +00:00

Siempre guardar el valor de los campos booleanos

This commit is contained in:
f 2021-09-11 17:26:44 -03:00
parent 9b8c09cb00
commit a242ceee68

View file

@ -31,6 +31,11 @@ class MetadataBoolean < MetadataTemplate
self[:value] = true_values.include? self[:value] self[:value] = true_values.include? self[:value]
end end
# Siempre guardar el valor de este campo a menos que sea nulo
def empty?
!value.nil?
end
private private
# Los valores que evalúan a verdadero # Los valores que evalúan a verdadero