We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Hoge < ActiveRecord::Base has_many :aaa end
@hoge.try(:aaa).try(:bbb)
・仕様変更でaaaがcccに変わったときに
class Hoge < ActiveRecord::Base has_many :ccc end
・tryで握り潰されてしまっているのでエラーが出ない。
tryは使わない方がいい...?
The text was updated successfully, but these errors were encountered:
[まとめ] 例外をいきなりつぶすのは良くない。 その為、いきなりtryを使わずに例外を出した上で、開発がtryで握りつぶすか否かを話し合うことが大事。
Sorry, something went wrong.
No branches or pull requests
・仕様変更でaaaがcccに変わったときに
・tryで握り潰されてしまっているのでエラーが出ない。
tryは使わない方がいい...?
The text was updated successfully, but these errors were encountered: