js_routes 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module JsRoutes
32
32
  Rails.application.routes.routes.each do |route|
33
33
  defaults = route.defaults
34
34
 
35
- unless defaults.present? && defaults.has?(:exclude_from_js) && defaults[:exclude_from_js]
35
+ unless defaults.present? && defaults.has_key?(:exclude_from_js) && defaults[:exclude_from_js]
36
36
  f << <<-JS.strip
37
37
  Routes.#{route.name}_path = function() {
38
38
  Array.prototype.unshift.call(arguments, '#{route.path}');
@@ -1,3 +1,3 @@
1
1
  module JsRoutes
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: