1
0
Fork 0
Dieser Commit ist enthalten in:
Angus McLeod 2020-04-07 21:17:20 +10:00
Ursprung 6ced0cf13c
Commit 565e175f79

Datei anzeigen

@ -28,7 +28,7 @@ class CustomWizard::Action
creator = PostCreator.new(user, params)
post = creator.create
if creator.errors.present?
updater.errors.add(:create_topic, creator.errors.full_messages.join(" "))
elsif action['skip_redirect'].blank?
@ -200,13 +200,11 @@ class CustomWizard::Action
data: data,
user: user,
).perform
if output.is_a?(Array)
output.flatten
elsif output.is_a?(Integer)
else output.is_a?(String)
[*output]
elsif output.is_a?(String)
[*output.to_i]
end
end