Fixed state_check().
This commit is contained in:
parent
ab0a02c09d
commit
848adb944a
1 changed files with 1 additions and 2 deletions
|
@ -141,8 +141,7 @@ reset config setting to default
|
||||||
return if !state
|
return if !state
|
||||||
return if state == false
|
return if state == false
|
||||||
|
|
||||||
return if state.respond_to?('has_key?')
|
return if state.respond_to?('has_key?') && state.key?(:value)
|
||||||
return if state.key?(:value)
|
|
||||||
|
|
||||||
self.state = { value: state }
|
self.state = { value: state }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue