mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:06:22 +00:00
no asignar variables de un solo uso
This commit is contained in:
parent
c9683900dd
commit
be4193d4ac
1 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,6 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
- dir = t("locales.#{@locale}.dir")
|
- dir = t("locales.#{@locale}.dir")
|
||||||
|
|
||||||
-# Comienza el formulario
|
-# Comienza el formulario
|
||||||
= form_tag url, method: method, class: 'form post ' + extra_class, multipart: true do
|
= form_tag url, method: method, class: 'form post ' + extra_class, multipart: true do
|
||||||
|
|
||||||
|
@ -41,10 +40,9 @@
|
||||||
-# Dibuja cada atributo
|
-# Dibuja cada atributo
|
||||||
- post.attributes.each do |attribute|
|
- post.attributes.each do |attribute|
|
||||||
- metadata = post[attribute]
|
- metadata = post[attribute]
|
||||||
- type = metadata.type
|
|
||||||
|
|
||||||
- cache metadata do
|
- cache metadata do
|
||||||
= render("posts/attributes/#{type}",
|
= render("posts/attributes/#{metadata.type}",
|
||||||
base: 'post', post: post, attribute: attribute,
|
base: 'post', post: post, attribute: attribute,
|
||||||
metadata: metadata, site: site,
|
metadata: metadata, site: site,
|
||||||
dir: dir, locale: @locale,
|
dir: dir, locale: @locale,
|
||||||
|
|
Loading…
Reference in a new issue