Skip to content

Instantly share code, notes, and snippets.

@tpope
Created September 14, 2015 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpope/15c9486b439238402bb3 to your computer and use it in GitHub Desktop.
Save tpope/15c9486b439238402bb3 to your computer and use it in GitHub Desktop.
grading_period = @context.courses.map do |course|
GradingPeriod.context_find(course, params[:grading_period_id])
end.compact.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment