Class: Decidim::ShareWidgetCell

Inherits:
ViewModel
  • Object
show all
Includes:
QrCodeHelper, SocialShareButtonHelper
Defined in:
app/cells/decidim/share_widget_cell.rb

Instance Method Summary collapse

Methods included from SocialShareButtonHelper

#render_social_share_button, #render_social_share_buttons, #render_social_share_icon, #social_share_button_tag

Methods included from QrCodeHelper

#local_params, #qr_code, #qr_code_image, #resource_name, #resource_url

Methods included from ShortLinkHelper

#short_url

Instance Method Details

#processed_paramsObject



16
17
18
# File 'app/cells/decidim/share_widget_cell.rb', line 16

def processed_params
  params.permit(:participatory_process_slug, :component_id, :id).to_h
end

#showObject



12
13
14
# File 'app/cells/decidim/share_widget_cell.rb', line 12

def show
  render
end

#titleObject



20
21
22
# File 'app/cells/decidim/share_widget_cell.rb', line 20

def title
  model.presenter.title(html_escape: true)
end