From 848adb944a40f79973fe074f41bd34be50d2d88f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 31 Aug 2015 14:48:33 +0200 Subject: [PATCH] Fixed state_check(). --- app/models/setting.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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