mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:21:41 +00:00
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