Sha256: e920e3bf31dd8a281f087e14880da972d2de6002bdf798b7890849cd36a889f2

Contents?: true

Size: 563 Bytes

Versions: 33

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require "cell/partial"

module Decidim
  module NewsletterTemplates
    class BaseCell < Decidim::ViewModel
      include Decidim::SanitizeHelper
      include Cell::ViewModel::Partial
      include Decidim::NewslettersHelper

      def show
        render :show
      end

      def organization
        options[:organization]
      end
      alias current_organization organization

      def newsletter
        options[:newsletter]
      end

      def recipient_user
        options[:recipient_user]
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
decidim-core-0.27.1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.4 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.0 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.3 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.0.rc2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.27.0.rc1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.0 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.0.rc2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.26.0.rc1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.0 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.0.rc4 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.0.rc3 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.0.rc2 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.25.0.rc1 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.24.3 app/cells/decidim/newsletter_templates/base_cell.rb
decidim-core-0.23.6 app/cells/decidim/newsletter_templates/base_cell.rb