Sha256: 5fa62860d9059f3ef996601754633b0e9b2e6851c0c2db1ca8b28077028c0f02
Contents?: true
Size: 697 Bytes
Versions: 20
Compression:
Stored size: 697 Bytes
Contents
module SiblingsNavigation def next_for(user) pending_siblings_for(user).select { |it| it.number > number }.sort_by(&:number).first end def restart(user) pending_siblings_for(user).sort_by(&:number).first end def siblings structural_parent.structural_children end #TODO reestablish this after indicators reliably linked to assignments # def pending_siblings_for(user, organization=Organization.current) # siblings.reject { |it| it.progress_for(user, organization).completed? } # end # Names def navigable_name "#{number}. #{name}" end # Answers a - maybe empty - list of pending siblings for the given user #required :pending_siblings_for end
Version data entries
20 entries across 20 versions & 2 rubygems