Module: Decidim::Followable

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