Module: Decidim::FollowableHelper

Defined in:
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 'app/helpers/decidim/followable_helper.rb', line 7

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