diff --git a/app/cells/decidim/card_m/show.erb b/app/cells/decidim/card_m/show.erb index bc70ba3d..3f894ce9 100644 --- a/app/cells/decidim/card_m/show.erb +++ b/app/cells/decidim/card_m/show.erb @@ -17,7 +17,7 @@ <%= render :tags %> - <%= render :data if has_data? %> + <%= render :data %> <%= render :status %> <%= render :footer %> diff --git a/config/initializers/extends.rb b/config/initializers/extends.rb index 1c43a18e..0aa114c3 100644 --- a/config/initializers/extends.rb +++ b/config/initializers/extends.rb @@ -4,7 +4,6 @@ require "extends/helpers/decidim/meetings/directory/application_helper_extends" require "extends/helpers/decidim/assemblies/assemblies_helper_extends" require "extends/helpers/decidim/accountability/application_helper_extends" -require "extends/cells/decidim/card_m_cell_extends" def load_dir(directory) files = Dir.glob("lib/extends/#{directory}/*.rb") diff --git a/lib/extends/cells/decidim/card_m_cell_extends.rb b/lib/extends/cells/decidim/card_m_cell_extends.rb deleted file mode 100644 index 56ab0ac4..00000000 --- a/lib/extends/cells/decidim/card_m_cell_extends.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Decidim - module CardMCellExtends - def has_data? - return if model.respond_to?("data?") && model.data? - - false unless context[:data].presence - end - end -end - -Decidim::CardMCell.class_eval do - prepend(Decidim::CardMCellExtends) -end