Created by: jouve
The error happened because : enabled ||= true always evaluates to true. Changed all initialisations of bool settings to use same syntax enabled = true if enabled.nil?
enabled ||= true
enabled = true if enabled.nil?