Fixed change of value / value_current.

This commit is contained in:
Martin Edenhofer 2015-09-25 23:35:17 +02:00
parent 4946c40679
commit 01680a8ad3

View file

@ -141,8 +141,9 @@ reset config setting to default
false
end
# convert state ot hash to be able to store it as store
# convert state into hash to be able to store it as store
def state_check
return if !state
return if state && state.respond_to?('has_key?') && state.key?(:value)
self.state_current = { value: state }
end