Module: Decidim::FollowableHelper

Included in:
Blogs::ApplicationHelper, Debates::ApplicationHelper, Proposals::ApplicationHelper
Defined in:
decidim-core/app/helpers/decidim/followable_helper.rb

Overview

A Helper for views with Followable resources.

Instance Method Summary collapse

Instance Method Details

#follow_button_for(model, large = nil) ⇒ Object

Invokes the decidim/shared/follow_button partial.


7
8
9
# File 'decidim-core/app/helpers/decidim/followable_helper.rb', line 7

def follow_button_for(model, large = nil)
  render partial: "decidim/shared/follow_button.html", locals: { followable: model, large: large }
end