css_grid 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module CssGrid
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
  end
data/lib/css_grid.rb CHANGED
@@ -16,10 +16,12 @@ module GridHelper
16
16
  end
17
17
 
18
18
  def grid tag, options = {}, &block
19
- prepend = if options[:prepend] > 0
20
- TWELVE_STRING_INTS_INVERT[options.delete :prepend]
21
- else
22
- "minus_#{ TWELVE_STRING_INTS_INVERT[options.delete :prepend] }"
19
+ prepend = if options[:prepend].present?
20
+ if options[:prepend] > 0
21
+ TWELVE_STRING_INTS_INVERT[options.delete :prepend]
22
+ else
23
+ "minus_#{ TWELVE_STRING_INTS_INVERT[options.delete :prepend] }"
24
+ end
23
25
  end
24
26
  append = TWELVE_STRING_INTS_INVERT[options.delete :append]
25
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: