[Git][noosfero/noosfero][master] plugins/routes: use reverse_merge (fix products and other plugins' tests)

Bráulio Bhavamitra gitlab at mg.gitlab.com
Wed May 3 21:56:54 BRT 2017


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
4ffd9262 by Braulio Bhavamitra at 2017-05-03T21:56:29-03:00
plugins/routes: use reverse_merge (fix products and other plugins' tests)

- - - - -


1 changed file:

- lib/noosfero/plugin/routes.rb


Changes:

=====================================
lib/noosfero/plugin/routes.rb
=====================================
--- a/lib/noosfero/plugin/routes.rb
+++ b/lib/noosfero/plugin/routes.rb
@@ -38,7 +38,7 @@ Dir.glob Rails.root.join plugins_root, '*', 'controllers' do |controllers_dir|
   end
 
   # DEPRECATED default controllers
-  paths.merge!(
+  paths.reverse_merge!(
     "plugin/#{plugin_name}(/:action(/:id))" => {
       controller: "#{plugin_name}_plugin",
       via:        :all,



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/4ffd92620b38c6897b9abe8d45479d6a524dfae1

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/4ffd92620b38c6897b9abe8d45479d6a524dfae1
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170504/d55f9e70/attachment.html>


More information about the Noosfero-dev mailing list