Method: Binda::FieldableAssociationHelpers::FieldableImageHelpers#get_image_url

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

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

Get the image url 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



23
24
25
# File 'app/models/concerns/binda/fieldable_association_helpers/fieldable_image_helpers.rb', line 23

def get_image_url(field_slug, size = '')
	get_image_info( field_slug, size, 'url' )
end