eita-jrails 0.9.4 → 0.9.5

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: 7937ee94b70068782eeee82731773cb97ff8064c
4
- data.tar.gz: f03375550e80b904a7f94b3564b16eb3b8c38334
3
+ metadata.gz: 3605a6a9119aab7db3a1458e9d409babe62fc1bb
4
+ data.tar.gz: 598e970e6ac6015ee2db6310f87f2fd3c5adc089
5
5
  SHA512:
6
- metadata.gz: 64628bbae57dfd9ef8a9709156facdf2fb4884c133bf295d49c23fdd3cbb4c8c58923bb7ffb426099efa9224c0e637676d71afdd83826d08d978ef3e769cc8e5
7
- data.tar.gz: c7ea216ad9249ee39426c91a753fb63891449aefb4c1e1e6d6f115185c192e329b092a5283b4528df52780dcd8585ed966a1867fdfa19e6f368d74eff43175b6
6
+ metadata.gz: b9214d9190e44e0e608aeb938e3d8e18e69b58423fd4d4770999c9ee31e3c1f4f8be0cb348ae921ad8c87c6873a0888651a6f29aa7db584866ab9ba3f2955535
7
+ data.tar.gz: e6948925f01566cf2f8d62258208f48ded315172f23f1853e1747aca81aafeca238a57c1e8b7e118b4533c865174481aca7e919dc0135211cddc65e821abcc59
@@ -16,11 +16,14 @@ ActionView::Base.class_eval do
16
16
  include ActionView::Helpers::JavaScriptHelper
17
17
  end
18
18
 
19
- ActionView::TestCase.class_eval do
20
- #require 'jrails/asset_tag_ext'
21
- include ActionView::Helpers::JqueryHelper
22
- include ActionView::Helpers::JqueryUiHelper
23
- include ActionView::Helpers::JavaScriptHelper
19
+ # ActionView::TestCase may crash if ActionController is not loaded
20
+ ActiveSupport.on_load :action_controller do
21
+ ActionView::TestCase.class_eval do
22
+ #require 'jrails/asset_tag_ext'
23
+ include ActionView::Helpers::JqueryHelper
24
+ include ActionView::Helpers::JqueryUiHelper
25
+ include ActionView::Helpers::JavaScriptHelper
26
+ end
24
27
  end
25
28
 
26
29
  ActionView::Template.register_template_handler :rjs, ActionView::Template::Handlers::RJS.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eita-jrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Eisenberger