make nested properties work better
This commit is contained in:
parent
1a3b690757
commit
10a193add3
2 changed files with 17 additions and 9 deletions
|
|
@ -38,6 +38,7 @@ describe 'admin/configs', type: :feature do
|
|||
def get_full_config
|
||||
cfg = FoodsoftConfig.to_hash.deep_dup
|
||||
cfg.each {|k,v| v.reject! {|k,v| v.blank?} if v.is_a? Hash}
|
||||
cfg.reject! {|k,v| v.blank?}
|
||||
cfg
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue