diff --git a/Gemfile b/Gemfile index d8bec271a..d3ca509fb 100644 --- a/Gemfile +++ b/Gemfile @@ -94,7 +94,7 @@ gem "entypo-rails", "3.0.0" gem "handlebars_assets", "0.23.9" gem "jquery-rails", "4.4.0" -gem "js-routes", "1.4.14" +gem "js-routes", "2.1.2" gem "js_image_paths", "0.1.1" source "https://gems.diasporafoundation.org" do diff --git a/Gemfile.lock b/Gemfile.lock index ba1b9c067..413c70ca8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -361,7 +361,7 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) - js-routes (1.4.14) + js-routes (2.1.2) railties (>= 4) js_image_paths (0.1.1) rails (>= 4.0, < 6.0) @@ -837,7 +837,7 @@ DEPENDENCIES jasmine (= 3.10.0) jasmine-jquery-rails (= 2.0.3) jquery-rails (= 4.4.0) - js-routes (= 1.4.14) + js-routes (= 2.1.2) js_image_paths (= 0.1.1) json (= 2.3.0) json-schema (= 2.8.1) diff --git a/config/initializers/jsroutes.rb b/config/initializers/jsroutes.rb index e82bf7125..8e6f5176f 100644 --- a/config/initializers/jsroutes.rb +++ b/config/initializers/jsroutes.rb @@ -3,4 +3,6 @@ JsRoutes.setup do |config| config.camel_case = true config.compact = true + config.module_type = nil + config.namespace = "Routes" end