Skip to content

Instantly share code, notes, and snippets.

@bdougie
Created August 13, 2015 23:14
Show Gist options
  • Select an option

  • Save bdougie/0a6a0eee2e2266d77215 to your computer and use it in GitHub Desktop.

Select an option

Save bdougie/0a6a0eee2e2266d77215 to your computer and use it in GitHub Desktop.
def self.upcoming_enrollments
all_active = Enrollment.currently_enrolled
date = upcoming_thursday
all_active.select { |enrollment| CheckingFeedbackEligibility.new(enrollment, date).eligible? }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment