Sha256: bf403bef3ff47caa8e83a0a8ff2c6f2ae80500c7ec70c296aaf32142b6051212
Contents?: true
Size: 467 Bytes
Versions: 10
Compression:
Stored size: 467 Bytes
Contents
module ThinkFeelDoDashboard # Display the membership status for a participant and membership module ParticipantsHelper def membership_status(participant, membership) if participant.memberships.active.where( "memberships.is_complete = false").include?(membership) "<span class=\"label label-success\">Active</span> ".html_safe else "<span class=\"label label-danger\">Inactive</span> ".html_safe end end end end
Version data entries
10 entries across 10 versions & 1 rubygems