Skip to content

Commit

Permalink
[StandardError] Add readonly flag to fetch_reified_items method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmrAnderson committed Aug 28, 2024
1 parent 3da53bc commit 04f0d34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/active_snapshot/models/snapshot_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def object
elsif ActiveSnapshot.config.storage_method_native_json?
@object = super()
else
raise ArgumentError, "Unsupported storage_method: `#{ActiveSnapshot.config.storage_method}`"
raise StandardError, "Unsupported storage_method: `#{ActiveSnapshot.config.storage_method}`"
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/models/snapshot_item_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_validations

assert instance.invalid?

%i[item_id item_type snapshot_id object].each do |attr|
[:item_id, :item_type, :snapshot_id, :object].each do |attr|
assert_equal ["can't be blank"], instance.errors[attr] ### presence error
end

Expand Down

0 comments on commit 04f0d34

Please sign in to comment.