Skip to content

Commit

Permalink
Ruby 3 KwArgs: MHV (#11959)
Browse files Browse the repository at this point in the history
  • Loading branch information
oseasmoran73 authored Mar 6, 2023
1 parent 22348fb commit 02ccaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/v0/mhv_opt_in_flags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module V0
class MHVOptInFlagsController < ApplicationController
def show
opt_in_flag = MHVOptInFlag.find_by(user_account_id: current_user.user_account, feature: params[:feature])
raise Common::Exceptions::RecordNotFound.new message: 'Record not found' if opt_in_flag.nil?
raise Common::Exceptions::RecordNotFound, message: 'Record not found' if opt_in_flag.nil?

render json: { mhv_opt_in_flag: { user_account_id: opt_in_flag.user_account_id, feature: opt_in_flag.feature } }
rescue => e
Expand Down

0 comments on commit 02ccaf7

Please sign in to comment.