js_routes 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,10 @@ module JsRoutes
7
7
  end
8
8
 
9
9
  config.after_initialize do
10
+
11
+ JsRoutes.generate_routes_file
12
+ FileUtils.cp File.expand_path('../../assets/javascripts/jquery.pathBuilder.js', __FILE__), File.join(Rails.root, 'public', 'javascripts')
13
+
10
14
  if Rails.env.development?
11
15
  ApplicationController.class_eval do
12
16
  before_filter do
@@ -16,11 +20,6 @@ module JsRoutes
16
20
  end
17
21
  end
18
22
 
19
- initializer 'js_routes.generate_routes_file', :after=> :build_middleware_stack do |app|
20
- JsRoutes.generate_routes_file
21
- FileUtils.cp File.expand_path('../../assets/javascripts/jquery.pathBuilder.js', __FILE__), File.join(Rails.root, 'public', 'javascripts')
22
- end
23
-
24
23
  end
25
24
 
26
25
  def self.generate_routes_file
@@ -1,3 +1,3 @@
1
1
  module JsRoutes
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-28 00:00:00.000000000 +04:00
12
+ date: 2011-08-01 00:00:00.000000000 +04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: ''