Apply rubocop
Dieser Commit ist enthalten in:
Ursprung
e441588aa3
Commit
098e8418fb
4 geänderte Dateien mit 6 neuen und 5 gelöschten Zeilen
|
@ -23,7 +23,7 @@ class CustomWizard::AdminSubmissionsController < CustomWizard::AdminController
|
|||
content_type: "application/json",
|
||||
disposition: "attachment"
|
||||
end
|
||||
|
||||
|
||||
protected
|
||||
|
||||
def ordered_submissions
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# frozen_string_literal: true
|
||||
class CustomWizard::Submission
|
||||
include ActiveModel::SerializerSupport
|
||||
|
||||
|
@ -23,7 +24,7 @@ class CustomWizard::Submission
|
|||
if user_id
|
||||
@user = User.find_by(id: user_id)
|
||||
else
|
||||
@user = wizard.user
|
||||
@user = wizard.user
|
||||
end
|
||||
|
||||
data = data.with_indifferent_access
|
||||
|
@ -113,4 +114,4 @@ class CustomWizard::Submission
|
|||
|
||||
result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -13,4 +13,4 @@ class CustomWizard::SubmissionSerializer < ApplicationSerializer
|
|||
object.user.username :
|
||||
I18n.t('admin.wizard.submission.no_user', user_id: object.user_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -40,4 +40,4 @@ describe CustomWizard::Submission do
|
|||
it "list submissions by wizard and user" do
|
||||
expect(described_class.list(@wizard, user_id: user.id).size).to eq(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Laden …
In neuem Issue referenzieren