Skip to content

Commit

Permalink
Fix specs for Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FLeinzi committed Aug 12, 2024
1 parent 175fa0c commit 422983f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/active_type/util/unmutable_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def key?(key)
original_attributes.key?(key)
end

def keys
original_attributes.keys
end

def method_missing(*args)
raise MutationAfterCastError, 'Changing a record that has been used to create an ActiveType::Record could have unexpected side effects!'
end
Expand Down

0 comments on commit 422983f

Please sign in to comment.