Method: Binda::FieldableAssociationHelpers::FieldableSvgHelpers#get_svg_path

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

#get_svg_path(field_slug) ⇒ string

Get the svg path 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



30
31
32
# File 'app/models/concerns/binda/fieldable_association_helpers/fieldable_svg_helpers.rb', line 30

def get_svg_path(field_slug)
	get_svg_info( field_slug, 'path' )
end