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.
@@ -126,7 +126,11 @@ module RjsHelper
126
126
  js_args << rendered_content(content) if content
127
127
  js_args += args
128
128
 
129
- %{rjsHelpers.#{js_function}(#{string_args(js_args)});}
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)
@@ -1,3 +1,3 @@
1
1
  module RjsHelpers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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: 2013-11-04 00:00:00 Z
18
+ date: 2014-02-19 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler