hyperstack-org / hyperstack-org/hyperstack

default for boolean dummy values not working

Aperta
#261 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

for booleans, the following default values in the schema should be recognized as true, anything else is false:

`'1'`, `true` or `1`

i.e. in ReactiveRecord::Base::DummyValue
```ruby
def build_default_value_for_boolean
@column_hash[:default] == '1' || @column_hash[:default] == true || @column_hash[:default] == 1
end
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.