Add support for Rails 6

master
Guillaume Dott 2021-07-09 11:34:47 +02:00
parent 1bf3662cb0
commit 90bb75d02e
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ module TheModerator
def accept
self.class.transaction do
destroy
moderatable.update_attributes(data)
moderatable.update(data)
end
end

View File

@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "activemodel", ">= 3.2.0", "< 5.3"
spec.add_dependency "activerecord", ">= 3.2.0", "< 5.3"
spec.add_dependency "activesupport", ">= 3.2.0", "< 5.3"
spec.add_dependency "activemodel", ">= 3.2.0", "< 7"
spec.add_dependency "activerecord", ">= 3.2.0", "< 7"
spec.add_dependency "activesupport", ">= 3.2.0", "< 7"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake", "~> 13.0"