Sha256: 396c4a2abbb0991fced6028f81d03b74b4c1becb619500bed0cc660750231b3e
Contents?: true
Size: 664 Bytes
Versions: 5
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems