diff --git a/lib/the_moderator/moderation_model.rb b/lib/the_moderator/moderation_model.rb index 2341ccf..6e0c07f 100644 --- a/lib/the_moderator/moderation_model.rb +++ b/lib/the_moderator/moderation_model.rb @@ -16,7 +16,7 @@ module TheModerator def accept self.class.transaction do destroy - moderatable.update_attributes(data) + moderatable.update(data) end end diff --git a/the_moderator.gemspec b/the_moderator.gemspec index 10f2222..51deb5c 100644 --- a/the_moderator.gemspec +++ b/the_moderator.gemspec @@ -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"