2007-03-30 04:36:52 +00:00
|
|
|
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2015-08-04 23:08:13 +02:00
|
|
|
|
|
|
|
# Please note that dates in yml are not converted to utc timezone like
|
|
|
|
# rails does automatically in models or controllers! Convert to utc manually!
|
|
|
|
<%
|
|
|
|
def today
|
2025-06-29 13:25:14 +03:00
|
|
|
Time.zone.now.utc.to_formatted_s(:db)
|
2015-08-04 23:08:13 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def next_week
|
2025-06-29 13:25:14 +03:00
|
|
|
1.week.from_now.utc.to_formatted_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
2015-08-04 23:08:13 +02:00
|
|
|
|
|
|
|
def last_week
|
2025-06-29 13:25:14 +03:00
|
|
|
1.week.ago.utc.to_formatted_s(:db)
|
2007-03-30 04:36:52 +00:00
|
|
|
end
|
|
|
|
%>
|
|
|
|
|
|
|
|
first_notes:
|
|
|
|
id: 1
|
|
|
|
user_id: 1
|
|
|
|
project_id: 1
|
|
|
|
body: Need to collect a catalogue from Time Machines R Us
|
|
|
|
created_at: <%= today %>
|
|
|
|
updated_at: <%= today %>
|
|
|
|
another_notes:
|
|
|
|
id: 2
|
|
|
|
user_id: 1
|
|
|
|
project_id: 1
|
|
|
|
body: Should I go for a swirly effect or a whooshy one?
|
|
|
|
created_at: <%= today %>
|
|
|
|
updated_at: <%= today %>
|