Sha256: 8efe8f1be9179edf389bb67a714057df8e3ebb5b832434b80e2f7e209f566136
Contents?: true
Size: 204 Bytes
Versions: 18
Compression:
Stored size: 204 Bytes
Contents
module BetterRecord module NullifyBlankAttributes def write_attribute(attr_name, value) new_value = value == false ? false : value.presence super(attr_name, new_value) end end end
Version data entries
18 entries across 18 versions & 1 rubygems