0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 01:40:29 +01:00

Strings are Objects in ruby

Dieser Commit ist enthalten in:
Angus McLeod 2023-03-21 17:38:53 +01:00
Ursprung 076e1f4966
Commit 6e44543cbb

Datei anzeigen

@ -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