lib/jcompiler.rb in jcompiler-0.1.32 vs lib/jcompiler.rb in jcompiler-0.1.33
- old
+ new
@@ -6,11 +6,11 @@
name: 'brand.name',
description: 'brand.description',
published_at: 'brand.published_at.utc.iso8601(3)',
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))',
+ image_medium: 'brand.image_file.url(:medium)',
+ image_square: 'brand.image_file.url(:square)',
url: 'brand_path(brand)'
#labels: '"#{brand.new_arrival? ? \'["NEW"]\' : \'[]\'}"'
}.map do |key, code|
v = eval(code, bind)
"\"#{key}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"