5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 13:26:07 +00:00

no asignar variables de un solo uso

This commit is contained in:
f 2020-11-30 12:26:53 -03:00
parent c9683900dd
commit be4193d4ac

View file

@ -29,7 +29,6 @@
end
- dir = t("locales.#{@locale}.dir")
-# Comienza el formulario
= form_tag url, method: method, class: 'form post ' + extra_class, multipart: true do
@ -41,10 +40,9 @@
-# Dibuja cada atributo
- post.attributes.each do |attribute|
- metadata = post[attribute]
- type = metadata.type
- cache metadata do
= render("posts/attributes/#{type}",
= render("posts/attributes/#{metadata.type}",
base: 'post', post: post, attribute: attribute,
metadata: metadata, site: site,
dir: dir, locale: @locale,