simplificar!

este codigo legacy pisaba los datos que le enviamos via el partial
This commit is contained in:
f 2018-07-23 20:34:37 -03:00
parent 4330393b3a
commit e27cc2d546
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -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),