Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Nov 6, 2024
1 parent 4db3989 commit f5a49bd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 57 deletions.
15 changes: 15 additions & 0 deletions app/controllers/concerns/decidim/pages_controller_override.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module Decidim
module PagesControllerOverride
extend ActiveSupport::Concern

included do
before_action :accessibility_redirect

def accessibility_redirect
return if params[:id] != "accessibilitat"

redirect_to "https://ajuntament.barcelona.cat/declaracio-accessibilitat/#{I18n.locale}/decidim-barcelona"
end
end
end
end
57 changes: 0 additions & 57 deletions app/controllers/decidim/pages_controller.rb

This file was deleted.

1 change: 1 addition & 0 deletions config/initializers/decidim_overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
Decidim::Forms::QuestionnaireUserAnswers.include(Decidim::Forms::QuestionnaireUserAnswersOverride)
Decidim::Proposals::ApplicationHelper.include(Decidim::Proposals::ApplicationHelperOverride)
Decidim::Assemblies::AssembliesController.include(Decidim::Assemblies::AssembliesControllerOverride)
Decidim::PagesController.include(Decidim::PagesControllerOverride)
end

0 comments on commit f5a49bd

Please sign in to comment.