Skip to content

Instantly share code, notes, and snippets.

@talum talum/sti_5.rb
Created Nov 25, 2018

Embed
What would you like to do?
class Lesson < Curriculum
belongs_to :canonical_material, class_name: CourseWork::CanonicalMaterial
has_one :lab, foreign_key: :curriculum_id
def lab?
if $rollout.active?(:remove_content)
canonical_material.lab?
else
!!lab
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.