Sha256: eed9212f9d0ae4d65f5e900fab2adf37b8423c8994b5072cec134a18aabe15ae
Contents?: true
Size: 415 Bytes
Versions: 58
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module Decidim # This concern contains the logic related to followable resources. module Followable extend ActiveSupport::Concern included do has_many :follows, as: :followable, foreign_key: "decidim_followable_id", foreign_type: "decidim_followable_type", class_name: "Decidim::Follow" has_many :followers, through: :follows, source: :user end end end
Version data entries
58 entries across 58 versions & 2 rubygems