Fixed state_check().

This commit is contained in:
Martin Edenhofer 2015-08-31 14:48:33 +02:00
parent ab0a02c09d
commit 848adb944a

View file

@ -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