Sha256: 464df3c40125892f8e8e0b941c656ea7f7675c0e687715a0a9ba0e751b7d8cba
Contents?: true
Size: 443 Bytes
Versions: 74
Compression:
Stored size: 443 Bytes
Contents
class Lesson < ApplicationRecord include WithNumber include FriendlyName include GuideContainer belongs_to :topic belongs_to :guide include ParentNavigation, SiblingsNavigation alias_method :chapter, :navigable_parent def used_in?(organization) guide.usage_in_organization(organization) == self end def pending_siblings_for(user) topic.pending_lessons(user) end def structural_parent topic end end
Version data entries
74 entries across 74 versions & 2 rubygems