Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from tricycle/fix-deprecation-on-with-indiffere…
Browse files Browse the repository at this point in the history
…nt-access

Fix deprecation warning on with_indifferent_access
  • Loading branch information
michaelwebb76 authored May 9, 2019
2 parents 99f42c8 + e5f0ec5 commit a4f3138
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# paranoia Changelog

## 2.4.3

* Fix deprecation message on Hash#with_indifferent_access

## 2.4.2

* [#470](https://github.com/rubysherpas/paranoia/pull/470) Add support for ActiveRecord 6.0
Expand Down
2 changes: 1 addition & 1 deletion lib/paranoia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def restore(id_or_ids, opts = {})
end

def paranoia_update(attributes)
attributes = attributes.with_indifferent_access
attributes = attributes.stringify_keys
object_class = self.class

has_many_through_associations = object_class.reflect_on_all_associations.select do |association|
Expand Down
2 changes: 1 addition & 1 deletion lib/paranoia/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Paranoia
VERSION = '2.4.2'.freeze
VERSION = '2.4.3'.freeze
end

0 comments on commit a4f3138

Please sign in to comment.