Commit 76932f4658a8b585dcb6572dea60f9eb4d945f26
Exists in
master
and in
27 other branches
Merge branch 'I395-username_with_dot_comment_paragraph' into 'master'
I395 username with dot comment paragraph Fix https://gitlab.com/participa/noosfero/issues/395 See merge request !492
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/plugin/routes.rb
... | ... | @@ -18,7 +18,7 @@ Dir.glob(Rails.root.join(plugins_root, '*', 'controllers')) do |controllers_dir| |
18 | 18 | controllers_by_folder.each do |folder, controllers| |
19 | 19 | controllers.each do |controller| |
20 | 20 | controller_name = controller.gsub("#{plugin_name}_plugin_",'') |
21 | - if %w[profile myprofile].include?(folder) | |
21 | + if %w[profile myprofile].include?(folder.to_s) | |
22 | 22 | match "#{prefixes_by_folder[folder]}/#{plugin_name}/#{controller_name}(/:action(/:id))", :controller => controller, :profile => /#{Noosfero.identifier_format}/ |
23 | 23 | else |
24 | 24 | match "#{prefixes_by_folder[folder]}/#{plugin_name}/#{controller_name}(/:action(/:id))", :controller => controller | ... | ... |