diff --git a/app/models/setting.rb b/app/models/setting.rb index 40aac368f..c61869935 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -141,8 +141,7 @@ reset config setting to default return if !state return if state == false - return if state.respond_to?('has_key?') - return if state.key?(:value) + return if state.respond_to?('has_key?') && state.key?(:value) self.state = { value: state } end