Sha256: 90e4834001d2ccb62b263376ce519af2226bd64ce070f14f80d111d11a2c1e89

Contents?: true

Size: 364 Bytes

Versions: 12

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A Helper for views with Followable resources.
  module FollowableHelper
    # Invokes the decidim/shared/follow_button partial.
    def follow_button_for(model, large = nil)
      controller.view_context.render partial: "decidim/shared/follow_button", locals: { followable: model, large: large }
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.8 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.7 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.6 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.5 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.4 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.3 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.2 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.1 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.0 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.0.rc2 app/helpers/decidim/followable_helper.rb
decidim-core-0.27.0.rc1 app/helpers/decidim/followable_helper.rb