Method: Binda::FieldableAssociationHelpers::FieldableImageHelpers#get_image_path

Defined in:
app/models/concerns/binda/fieldable_association_helpers/fieldable_image_helpers.rb

#get_image_path(field_slug, size = '') ⇒ string

Get the image path based on the size provided,

default is Carrierwave default (usually the real size)

Parameters:

  • field_slug (string)

    The slug of the field setting

  • size (string) (defaults to: '')

    The size. It can be ‘thumb’ 200x200 cropped.

Returns:

  • (string)

    The url of the image



33
34
35
# File 'app/models/concerns/binda/fieldable_association_helpers/fieldable_image_helpers.rb', line 33

def get_image_path(field_slug, size = '')
	get_image_info( field_slug, size, 'path' )
end