Module: Decidim::Followable

Extended by:
ActiveSupport::Concern
Included in:
UserBaseEntity
Defined in:
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 '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