Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Jan 20, 2025
1 parent 541f358 commit 43be304
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def create
private

def authorization_request_reopening_cancellation_params
params.require(:authorization_request_reopening_cancellation).permit(
:reason,
params.expect(
authorization_request_reopening_cancellation: [:reason],
)
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/instruction/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def create
private

def message_params
params.require(:message).permit(
:body,
params.expect(
message: [:body],
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def create
private

def denial_of_authorization_params
params.require(:denial_of_authorization).permit(
:reason,
params.expect(
denial_of_authorization: [:reason],
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def create
private

def instructor_modification_request_params
params.require(:instructor_modification_request).permit(
:reason,
params.expect(
instructor_modification_request: [:reason],
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def create
private

def revocation_of_authorization_params
params.require(:revocation_of_authorization).permit(
:reason,
params.expect(
revocation_of_authorization: [:reason],
)
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def build_models
end

def message_params
params.require(:message).permit(
:body,
params.expect(
message: [:body],
)
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/notifications_settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def update
private

def settings_params
params.require(:user).permit(
*notifications_permitted_settings
params.expect(
user: [*notifications_permitted_settings]
)
end

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def provider_logo_image_tag(authorization_definition, options = {})
end

def displays_provider_logo?
@authorization_definition.present? && @display_provider_logo_in_header # rubocop:disable Naming/HelperInstanceVariable
@authorization_definition.present? && @display_provider_logo_in_header # rubocop:disable Rails/HelperInstanceVariable
end

def authorization_request_status_badge(authorization_request, no_icon: false, scope: nil)
Expand Down

0 comments on commit 43be304

Please sign in to comment.