Method: Binda::FieldableAssociationHelpers::FieldableSvgHelpers#get_svg_url

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

#get_svg_url(field_slug) ⇒ string

Get the svg url based on the size provided,

default is Carrierwave default (usually the real size)

Parameters:

  • field_slug (string)

    The slug of the field setting

Returns:

  • (string)

    The url of the svg



21
22
23
# File 'app/models/concerns/binda/fieldable_association_helpers/fieldable_svg_helpers.rb', line 21

def get_svg_url(field_slug)
	get_svg_info( field_slug, 'url' )
end