Class: Decidim::FollowButtonCell

Inherits:
ViewModel
  • Object
show all
Includes:
ResourceHelper, SanitizeHelper, LayoutHelper
Defined in:
decidim-core/app/cells/decidim/follow_button_cell.rb

Overview

This cell renders the button to follow the given resource.

Instance Method Summary collapse

Instance Method Details

#showObject


10
11
12
13
14
# File 'decidim-core/app/cells/decidim/follow_button_cell.rb', line 10

def show
  return if model == current_user

  render
end