Improved compat. check.
This commit is contained in:
parent
558286dfa0
commit
bf56a3a17e
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Setting < ApplicationModel
|
|||
self.state_initial = self.state
|
||||
end
|
||||
def state_check
|
||||
if self.state
|
||||
if self.state || self.state == false
|
||||
if !self.state.respond_to?('has_key?') || !self.state.has_key?(:value)
|
||||
self.state = { :value => self.state }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue