From 122d64103619454d17487ac7c1973939272377e5 Mon Sep 17 00:00:00 2001 From: Laura Jaime Date: Wed, 4 Sep 2024 10:28:58 +0200 Subject: [PATCH] Fix decorators in lib folder --- .../decorators/lib/decidim/filter_form_builder_decorator.rb | 4 ++-- .../app/decorators/lib/decidim/form_builder_decorator.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/decidim-regulations/app/decorators/lib/decidim/filter_form_builder_decorator.rb b/decidim-regulations/app/decorators/lib/decidim/filter_form_builder_decorator.rb index bc49d55a..d0bdcc0f 100644 --- a/decidim-regulations/app/decorators/lib/decidim/filter_form_builder_decorator.rb +++ b/decidim-regulations/app/decorators/lib/decidim/filter_form_builder_decorator.rb @@ -2,7 +2,7 @@ # This decorator add the method types_select to wrap the types select # in a custom fieldset like categories or areas in Decidim. -module Decidim::FilterFormBuilderDecorator +module Lib::Decidim::FilterFormBuilderDecorator def self.decorate Decidim::FilterFormBuilder.class_eval do def types_select(method, collection, options = {}) @@ -14,4 +14,4 @@ def types_select(method, collection, options = {}) end end -::Decidim::FilterFormBuilderDecorator.decorate +::Lib::Decidim::FilterFormBuilderDecorator.decorate diff --git a/decidim-regulations/app/decorators/lib/decidim/form_builder_decorator.rb b/decidim-regulations/app/decorators/lib/decidim/form_builder_decorator.rb index 269383d1..eb02f88d 100644 --- a/decidim-regulations/app/decorators/lib/decidim/form_builder_decorator.rb +++ b/decidim-regulations/app/decorators/lib/decidim/form_builder_decorator.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # This decorator add types_select to generates a select field with the types like areas_select in Decidim -module Decidim::FormBuilderDecorate +module Lib::Decidim::FormBuilderDecorator def self.decorate Decidim::FormBuilder.class_eval do def types_select(name, collection, options = {}) @@ -31,4 +31,4 @@ def types_select(name, collection, options = {}) end end -::Decidim::FormBuilderDecorate.decorate +::Lib::Decidim::FormBuilderDecorator.decorate