mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 10:31:42 +00:00
simplificar!
este codigo legacy pisaba los datos que le enviamos via el partial
This commit is contained in:
parent
4330393b3a
commit
e27cc2d546
1 changed files with 0 additions and 4 deletions
|
@ -1,7 +1,3 @@
|
|||
- if name.is_a?(Array) && name.count == 3
|
||||
- value = @post.get_front_matter(name.first).try(:[], name.second.to_i).try(:[], name.last)
|
||||
- else
|
||||
- value = @post.get_front_matter(template.key)
|
||||
- value = [] if value.nil?
|
||||
- values = template.values.empty? ? value : template.values
|
||||
= select_tag field_name_for_post_as_string(name),
|
||||
|
|
Loading…
Reference in a new issue