ActiveRecord Strict Loading

Improve performance by not lazy loading associations if not explicitly

class User < ActiveRecord::Base
  has_many :comments, strict_loading: true
end

# loading 
u = User.first
u.comments # => Raise ActiveRecord::StrictLoadingViolationError

u = User.includes(:comments).first
u.comments # => will work