Method: Binda::FieldableAssociationHelpers::FieldableSvgHelpers#get_svg_size

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

#get_svg_size(field_slug) ⇒ Object



50
51
52
53
# File 'app/models/concerns/binda/fieldable_association_helpers/fieldable_svg_helpers.rb', line 50

def get_svg_size(field_slug)
	obj = self.svgs.find{ |t| t.field_setting_id == FieldSetting.get_id( field_slug ) }
   	return bytes_to_megabytes(obj.file_size)
end