lib/contentful/dynamic_entry.rb in contentful-0.6.0 vs lib/contentful/dynamic_entry.rb in contentful-0.7.0

- old
+ new

@@ -26,11 +26,11 @@ end ] Class.new DynamicEntry do content_type.fields.each do |f| - define_method Support.snakify(f.id).to_sym do - fields[f.id.to_sym] + define_method Support.snakify(f.id).to_sym do |wanted_locale = default_locale| + fields(wanted_locale)[f.id.to_sym] end end define_singleton_method :fields_coercions do fields_coercions