app/helpers/decidim/proposals/proposals_helper.rb in decidim-proposals-0.23.6 vs app/helpers/decidim/proposals/proposals_helper.rb in decidim-proposals-0.24.0.rc1

- old
+ new

@@ -2,16 +2,13 @@ module Decidim module Proposals # Simple helpers to handle markup variations for proposals module ProposalsHelper - def proposal_reason_callout_args + def proposal_reason_callout_announcement { - announcement: { - title: proposal_reason_callout_title, - body: decidim_sanitize(translated_attribute(@proposal.answer)) - }, - callout_class: proposal_reason_callout_class + title: proposal_reason_callout_title, + body: decidim_sanitize(translated_attribute(@proposal.answer)) } end def proposal_reason_callout_class case @proposal.state