audited
audited copied to clipboard
undefined method `user_input_in_time_zone'
I upgrade to rails 5.1.7. On created_at
and audited_changes
date i get this error.
ActionView::Template::Error (undefined method `user_input_in_time_zone' for #ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter:0x00007fd8e58674a8):
the date looks like this Sat, 31 Aug 2019 20:30:29 UTC +00:00:Time
I am running into a similar problem with delayed_job. @mistaguy did you figure out a solution?
@drewB i never found a solution. so i decided to ignore the date and changes using
<% begin %>
<%= "#{audit.created_at} - #{time_ago_in_words(audit.created_at)}" %> ago
<% rescue => e%>
 c;
<% end %>
<% begin %>
<%= audit.audited_changes %>
<% rescue => e%>
<% end %>