What happened to the (dynamic) fixtures?

Hi, i’ve a fixture with some ruby code, something like this:

first:
attr1: text
attr2: <%= 3.days.ago %>

But now the <&= 3.days.ago %> doesn’t return anymore the correct value,
but nil.
What happened? How can i put some dynamic text into the fixtures like N
days ago ?
Thanks

Found, it’s kind a bug… with a datetime attribute in the fixture the
value must converted to the db format (to_s(:db)), otherwise a simple
Time.now would return nil

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs