Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

マッピングに項目が存在しない場合にエラーが発生する問題を修正 #59

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

chocoby
Copy link
Owner

@chocoby chocoby commented Mar 25, 2022

カスタマイズしたマッピングを使用している場合、定義に name_ename_r が存在しないと NoMethodError: undefined method 'capitalize' for nil:NilClass エラーが発生する問題を修正。

try メソッドを使用しエラーにせず nil を返すように修正したが、リファクタリングしたい...。

@coveralls
Copy link

Coverage Status

Coverage increased (+100.0%) to 100.0% when pulling a25d1ca on fix-custom-mappings into 96dab29 on main.

@chocoby chocoby marked this pull request as ready for review March 25, 2022 08:02
@chocoby chocoby merged commit f6cfd5a into main Mar 25, 2022
@chocoby chocoby deleted the fix-custom-mappings branch March 25, 2022 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants