Open fnordfish opened 7 years ago
This is due to a bug in ruby 2.4.0's instance_exec this code (taken from the samples) will fail:
instance_exec
$yaks = Yaks.new do map_to_primitive Date, Time, DateTime, ActiveSupport::TimeWithZone, &:iso8601 end
However, converting it to the more verbose syntax works just fine:
$yaks = Yaks.new do map_to_primitive Date, Time, DateTime, ActiveSupport::TimeWithZone do |t| t.iso8601 end end
This is due to a bug in ruby 2.4.0's
instance_exec
this code (taken from the samples) will fail:However, converting it to the more verbose syntax works just fine: