rjs_helpers 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/rjs_helper.rb +5 -1
- data/lib/rjs_helpers/version.rb +1 -1
- metadata +4 -4
data/app/helpers/rjs_helper.rb
CHANGED
@@ -126,7 +126,11 @@ module RjsHelper
|
|
126
126
|
js_args << rendered_content(content) if content
|
127
127
|
js_args += args
|
128
128
|
|
129
|
-
|
129
|
+
if defined?(ActiveSupport::SafeBuffer)
|
130
|
+
%{rjsHelpers.#{js_function}(#{string_args(js_args)});}.html_safe
|
131
|
+
else
|
132
|
+
%{rjsHelpers.#{js_function}(#{string_args(js_args)});}
|
133
|
+
end
|
130
134
|
end
|
131
135
|
|
132
136
|
def string_args(args)
|
data/lib/rjs_helpers/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjs_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stefan Exner
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2014-02-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|