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 +4 -4
- data/lib/jrails/on_load_action_view.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3605a6a9119aab7db3a1458e9d409babe62fc1bb
|
4
|
+
data.tar.gz: 598e970e6ac6015ee2db6310f87f2fd3c5adc089
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|