noosfero | 2 new commits pushed to repository
Bráulio Bhavamitra
gitlab at gitlab.com
Fri Mar 6 21:50:37 BRT 2015
Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/3562d426ab9d3a99bf5e3242a2fa61b673cde301">3562d426</a> by Evandro Junior
Corrected fix for plugin route bug if username contains dots
- - - - -
<a href="https://gitlab.com/noosfero/noosfero/commit/76932f4658a8b585dcb6572dea60f9eb4d945f26">76932f46</a> by Bráulio Bhavamitra
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
- - - - -
Changes:
=====================================
lib/noosfero/plugin/routes.rb
=====================================
--- a/lib/noosfero/plugin/routes.rb
+++ b/lib/noosfero/plugin/routes.rb
@@ -18,7 +18,7 @@ Dir.glob(Rails.root.join(plugins_root, '*', 'controllers')) do |controllers_dir|
controllers_by_folder.each do |folder, controllers|
controllers.each do |controller|
controller_name = controller.gsub("#{plugin_name}_plugin_",'')
- if %w[profile myprofile].include?(folder)
+ if %w[profile myprofile].include?(folder.to_s)
match "#{prefixes_by_folder[folder]}/#{plugin_name}/#{controller_name}(/:action(/:id))", :controller => controller, :profile => /#{Noosfero.identifier_format}/
else
match "#{prefixes_by_folder[folder]}/#{plugin_name}/#{controller_name}(/:action(/:id))", :controller => controller
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150307/85952de7/attachment.html>
More information about the Noosfero-dev
mailing list