debugging

pull/1/head
Oliver Kennedy 2018-04-27 20:58:37 -04:00
parent 1cd6f265a6
commit e20c514e10
1 changed files with 6 additions and 2 deletions

View File

@ -58,10 +58,14 @@ module ImageSmith
}
fields = {
src: uri,
width: size[0],
height: size[1],
style: style.map { |k, v| "#{k}:#{v}" }.join(';')
}
unless inline
fields.merge(
width: size[0],
height: size[1],
)
end
return "<img #{fields.map { |k, v| "#{k}=\"#{v}\"" }.join(" ") } />"
end