Skip to content

Commit

Permalink
move helper
Browse files Browse the repository at this point in the history
  • Loading branch information
eliegaboriau committed Jan 20, 2023
1 parent c33e07d commit a2a83f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

module Decidim
module Forms
class ApplicationHelperExtends
module ApplicationHelperExtends
def invalid?(responses)
responses.map { |response| response.errors.any? }.any?
end
end
end
end

Decidim::Forms::ApplicationHelper.class_eval do
Decidim::Forms::ApplicationHelper.module_eval do
prepend(Decidim::Forms::ApplicationHelperExtends)
end

0 comments on commit a2a83f8

Please sign in to comment.