Backport from 5.2.2: Auto include associations when the through association has already been loaded. See 145 for details. Thanks viktorianer and @Flixt (10e5c74a)
Fix issue 140 - Defer referencing ActiveRecord classes until it's been initialized to ensure the Rails.application.config.filter_parameters setting is applied properly. Thanks GuillouuH (8586648b)