Module: Spark::ImageHelper

Defined in:
app/helpers/spark/image_helper.rb

Instance Method Summary collapse

Instance Method Details

#image_size_class(size) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/spark/image_helper.rb', line 3

def image_size_class(size)
  size ||= "md"
  case size.to_s
  when "sm"
    24
  when "md"
    32
  when "lg"
    44
  when "xl"
    84
  else
    size
  end
end