require 'association_scope' ActiveRecord::Base.send(:include, ActiveRecord::Associations::Scope)