Sha256: 81333524e886e39fe89d5fc8a0dd83b8868b573f92fbe812b7c4d45f47b04d01
Contents?: true
Size: 634 Bytes
Versions: 11
Compression:
Stored size: 634 Bytes
Contents
module SocialNetworking module Concerns # adds scops to Membership class module Membership extend ActiveSupport::Concern def comments SocialNetworking::Comment.where(participant: participant) end def likes SocialNetworking::Like.where(participant: participant) end def nudges SocialNetworking::Nudge.where(initiator_id: participant) end def goals SocialNetworking::Goal.where(participant: participant) end def on_the_minds SocialNetworking::OnTheMindStatement.where(participant: participant) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems