mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:06:23 +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
|
||||
|
||||
- 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,
|
||||
|
|
Loading…
Reference in a new issue