Skip to content

Instantly share code, notes, and snippets.

@talum talum/sti_3.rb
Last active Nov 25, 2018

Embed
What would you like to do?
class Track < Curriculum
def labs
if $rollout.active?(:remove_content)
CourseWork::CanonicalMaterial
.joins(:lessons)
.where(curriculums: {track_id: self.id})
.where(kind: CourseWork::CanonicalMaterial::LAB_KINDS)
else
Lab.where(track_id: self.id)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.