Commits vergleichen
1 Commit
main
...
liquid_tem
Autor | SHA1 | Datum | |
---|---|---|---|
|
6e44543cbb |
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -44,7 +44,7 @@ class CustomWizard::Mapper
|
|||
|
||||
def initialize(params)
|
||||
@inputs = params[:inputs] || {}
|
||||
@data = params[:data].with_indifferent_access || {}
|
||||
@data = params[:data] ? params[:data].with_indifferent_access : {}
|
||||
@user = params[:user]
|
||||
@opts = params[:opts] || {}
|
||||
end
|
||||
|
@ -269,7 +269,7 @@ class CustomWizard::Mapper
|
|||
result = data[k]
|
||||
|
||||
if keys.empty?
|
||||
result.is_a?(Object) ? "" : result
|
||||
result.is_a?(Hash) ? "" : result
|
||||
else
|
||||
self.recurse(result, keys)
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren