2020/02/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Add Webpacker dependencies to the getting started guide
rails guideのGetting Started with Rails
の修正です。
Installing Rails
の項に、Node.jsとYarnのインストール方法について説明したInstalling Node.js and Yarn
を追加しています。どちらもWebpackerを動かすのに必要な為。
Add strict_loading
mode to prevent lazy loading
Active Recordの修正です。
recordのlazy loadを防ぐためのstrict_loading
modeを追加しています。
strict_loading
が指定されたrecordで、associationのlazy loadが行われた場合エラー(ActiveRecord::StrictLoadingViolationError
)がraiseされるようになっています。
dev = Developer.strict_loading.first dev.audit_logs.to_a # => ActiveRecord::StrictLoadingViolationError: Developer is marked as strict_loading and AuditLog cannot be lazily loaded.