parent
7d1fabe3df
commit
2c80aedc1e
1 changed files with 1 additions and 11 deletions
|
|
@ -153,17 +153,7 @@ module Settings
|
|||
|
||||
# get the setting's value, YAML decoded
|
||||
def value
|
||||
return if self[:value].blank?
|
||||
|
||||
YAML.safe_load(self[:value],
|
||||
permitted_classes: [
|
||||
ActiveSupport::HashWithIndifferentAccess,
|
||||
ActiveSupport::TimeZone,
|
||||
ActiveSupport::TimeWithZone,
|
||||
BigDecimal,
|
||||
Symbol,
|
||||
Time,
|
||||
])
|
||||
YAML.unsafe_load(self[:value]) if self[:value].present?
|
||||
end
|
||||
|
||||
# set the settings's value, YAML encoded
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue