lib/contentful/dynamic_entry.rb in contentful-0.4.0 vs lib/contentful/dynamic_entry.rb in contentful-0.5.0

- old
+ new

@@ -19,12 +19,12 @@ unless content_type.is_a? ContentType content_type = ContentType.new(content_type) end fields_coercions = Hash[ - content_type.fields.map do |field| - [field.id.to_sym, KNOWN_TYPES[field.type]] - end + content_type.fields.map do |field| + [field.id.to_sym, KNOWN_TYPES[field.type]] + end ] Class.new DynamicEntry do content_type.fields.each do |f| define_method Support.snakify(f.id).to_sym do