RubyGems
npm
Organizations
Log in
Sign up
RubyGems
script_helpers
Versions diffs
0.0.1 → 0.1.0
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.
Files changed (2)
hide
show
data/lib/script_helpers/helper_additions.rb
+6
-2
metadata
+1
-1
data/lib/script_helpers/helper_additions.rb
CHANGED
Viewed
@@ -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
Viewed
@@ -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: