Skip to content

Commit

Permalink
Merge pull request #503 from zinsbaustein/rails6.1
Browse files Browse the repository at this point in the history
Bump activerecord dependency for Rails 6.1
  • Loading branch information
sevenseacat committed Dec 14, 2020
2 parents 00a7057 + f504fc9 commit 15a09a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -17,6 +17,7 @@ env:
- RAILS='~> 5.0.0' SQLITE_VERSION='~> 1.3.6'
- RAILS='~> 5.1.0'
- RAILS='~> 5.2.0'
- RAILS='~> 6.1.0'
- RAILS='master'

matrix:
Expand All @@ -31,8 +32,14 @@ matrix:
rvm: jruby-9.2.8.0
- env: RAILS='master'
rvm: jruby-9.2.8.0
- env: RAILS='~> 6.1.0'
rvm: jruby-9.2.8.0
exclude:
- rvm: 2.3.8
env: RAILS='master'
- rvm: 2.4.5
env: RAILS='master'
- rvm: 2.3.8
env: RAILS='~> 6.1.0'
- rvm: 2.4.5
env: RAILS='~> 6.1.0'
2 changes: 1 addition & 1 deletion lib/paranoia.rb
Expand Up @@ -316,7 +316,7 @@ class AssociationNotSoftDestroyedValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
# if association is soft destroyed, add an error
if value.present? && value.paranoia_destroyed?
record.errors[attribute] << 'has been soft-deleted'
record.errors.add(attribute, 'has been soft-deleted')
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion paranoia.gemspec
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.0'

s.add_dependency 'activerecord', '>= 4.0', '< 6.1'
s.add_dependency 'activerecord', '>= 4.0', '< 6.2'

s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "rake"
Expand Down

0 comments on commit 15a09a8

Please sign in to comment.