lib/jcompiler.rb in jcompiler-0.1.21 vs lib/jcompiler.rb in jcompiler-0.1.22
- old
+ new
@@ -8,10 +8,10 @@
official_url: 'brand.blog_url',
sex_group: 'brand.blog_sex_switch',
# image_medium: 'absolute_url(brand.image_file.url(:medium))',
# image_square: 'absolute_url(brand.image_file.url(:square))',
# url: brand_
- labels: '"#{brand.new_arrival? ? '["NEW"]' ? '[]'}"'
+ labels: '"#{brand.new_arrival? ? '["NEW"]' : '[]'}"'
}.map do |key, code|
v = eval(code)
"\"#{attr}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
end
end