Sha256: df73f4e1ea68f7d10fcc5eea0f07682d96eb0f08cb93635fae3a774666618af9

Contents?: true

Size: 345 Bytes

Versions: 34

Compression:

Stored size: 345 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)
      render partial: "decidim/shared/follow_button.html", locals: { followable: model, large: large }
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.9 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.8 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.7 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.5 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.4 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.3 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.2 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.1 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.0 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.0.rc2 app/helpers/decidim/followable_helper.rb
decidim-core-0.26.0.rc1 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.2 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.1 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.0 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.0.rc4 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.0.rc3 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.0.rc2 app/helpers/decidim/followable_helper.rb
decidim-core-0.25.0.rc1 app/helpers/decidim/followable_helper.rb
decidim-core-0.24.3 app/helpers/decidim/followable_helper.rb