Module: Decidim::Followable

Extended by:
ActiveSupport::Concern
Included in:
Blogs::Post, Budgets::Project, Consultations::Question, Proposals::CollaborativeDraft, UserBaseEntity, Votings::Voting
Defined in:
decidim-core/lib/decidim/followable.rb

Overview

This concern contains the logic related to followable resources.

Instance Method Summary collapse

Instance Method Details

#followersObject



18
19
20
21
22
23
24
# File 'decidim-core/lib/decidim/followable.rb', line 18

def followers
  if respond_to?(:participatory_space) && participatory_space.present? && participatory_space.respond_to?(:followers)
    super.or(participatory_space.followers).distinct
  else
    super
  end
end