script_helpers 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,8 +18,12 @@ module ScriptHelpers
18
18
  end
19
19
 
20
20
  def script_contents
21
- javascript_tag do
22
- content_for :script
21
+ contents = content_for :script
22
+
23
+ if contents
24
+ javascript_tag do
25
+ contents
26
+ end
23
27
  end
24
28
  end
25
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: script_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: