Skip to content

Commit

Permalink
Fix decorators in lib folder
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Sep 4, 2024
1 parent 8590a94 commit 122d641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand All @@ -14,4 +14,4 @@ def types_select(method, collection, options = {})
end
end

::Decidim::FilterFormBuilderDecorator.decorate
::Lib::Decidim::FilterFormBuilderDecorator.decorate
Original file line number Diff line number Diff line change
@@ -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 = {})
Expand Down Expand Up @@ -31,4 +31,4 @@ def types_select(name, collection, options = {})
end
end

::Decidim::FormBuilderDecorate.decorate
::Lib::Decidim::FormBuilderDecorator.decorate

0 comments on commit 122d641

Please sign in to comment.