rjs-rails 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54b4f1d9d66985aefdb978162d187e5ff8019aad
4
- data.tar.gz: 94cd47d4bd8010ad6ea82a85a14a97acbe75bea9
3
+ metadata.gz: 649d6118ae47dc129e62272ea081fed28e8f010f
4
+ data.tar.gz: 1b582dc00310894688fb33c424e4497733e6a3bf
5
5
  SHA512:
6
- metadata.gz: 90f5113c944f0e87664e8d8bab1e6b76bf8d56842a15b9ac07adafef6f423c43de5c6e9f919c05aa74718fe5985fc81470025074ebbd4afcbad3ac786af94c96
7
- data.tar.gz: 751153725cf4b039e2d1ad57b175ee638fa2e01ceab15d5f12fc69c6f70c9bb6b0f3a08e642b5d4c5690645adc1774563107d4c2e6c2e158e051020b4879396d
6
+ metadata.gz: e49cbe4613dd5c7e09e5702afe8912d5c2f90ea14f99068883783a841425b5760cc16a46cbb45195c442d234945facd0811c5a13d1391c7c4a137fd71762526f
7
+ data.tar.gz: f39f181396dcd43bfc9a7925fa186f393ed5351b2adcafe131047c0b59efb6476d94d734bd0a296dab963fbe37f39e3d4b8b364521b91ef7728b51b8cfe1dae3
@@ -35,7 +35,11 @@ module RjsRails
35
35
 
36
36
 
37
37
  def helper
38
- ActionController::Base.helpers
38
+ @helper ||= begin
39
+ proxy = ::ActionView::Base.new
40
+ proxy.config = ::ActionController::Base.config.inheritable_copy
41
+ proxy.extend(::ActionController::Base._helpers)
42
+ end
39
43
  end
40
44
 
41
45
  private
@@ -1,3 +1,3 @@
1
1
  module RjsRails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - neeraj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails