Skip to content

Commit

Permalink
Merge pull request #271 from ifad/chore/do-not-convert-recorded-at
Browse files Browse the repository at this point in the history
Use default type cast for `recorded_at`
  • Loading branch information
tagliala authored Feb 27, 2024
2 parents a345bde + 96211c1 commit ee5c45f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/chrono_model/time_machine/history_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ def valid_to
end
alias as_of_time valid_to

def recorded_at
ChronoModel::Conversions.string_to_utc_time attributes_before_type_cast['recorded_at']
end

# Starting from Rails 6.0, `.read_attribute` will use the memoized
# `primary_key` if it detects that the attribute name is `id`.
#
Expand Down

0 comments on commit ee5c45f

Please sign in to comment.