diff --git a/Rakefile b/Rakefile index 99875c9..cc17e19 100644 --- a/Rakefile +++ b/Rakefile @@ -9,20 +9,6 @@ def install_module(path) system("bundle exec rake decidim_tags:install:migrations") system("bundle exec rake decidim_plans:install:migrations") system("bundle exec rake db:migrate") - - # Temporary fix to overcome the issue with sass-embedded, see: - # https://github.com/decidim/decidim/pull/11074 - system("npm i sass-embedded@~1.62.0") - end -end - -# Temporary fix to overcome the issue with babel plugin updates, see: -# https://github.com/decidim/decidim/pull/10916 -def fix_babel_config(path) - Dir.chdir(path) do - babel_config = "#{Dir.pwd}/babel.config.json" - FileUtils.rm_f(babel_config) - FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd) end end @@ -35,7 +21,6 @@ end desc "Generates a dummy app for testing" task test_app: "decidim:generate_external_test_app" do ENV["RAILS_ENV"] = "test" - fix_babel_config("spec/decidim_dummy_app") install_module("spec/decidim_dummy_app") end @@ -53,7 +38,6 @@ task :development_app do ) end - fix_babel_config("development_app") install_module("development_app") seed_db("development_app") end diff --git a/app/cells/decidim/plans/plan_g_cell.rb b/app/cells/decidim/plans/plan_g_cell.rb index bfe60c3..1e124f9 100644 --- a/app/cells/decidim/plans/plan_g_cell.rb +++ b/app/cells/decidim/plans/plan_g_cell.rb @@ -57,7 +57,7 @@ def body end def category_name - translated_attribute(category.name) if has_category? + decidim_sanitize(translated_attribute(category.name)) if has_category? end def full_category