Add support for Rails 6
parent
1bf3662cb0
commit
90bb75d02e
|
@ -16,7 +16,7 @@ module TheModerator
|
||||||
def accept
|
def accept
|
||||||
self.class.transaction do
|
self.class.transaction do
|
||||||
destroy
|
destroy
|
||||||
moderatable.update_attributes(data)
|
moderatable.update(data)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
||||||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
||||||
spec.require_paths = ["lib"]
|
spec.require_paths = ["lib"]
|
||||||
|
|
||||||
spec.add_dependency "activemodel", ">= 3.2.0", "< 5.3"
|
spec.add_dependency "activemodel", ">= 3.2.0", "< 7"
|
||||||
spec.add_dependency "activerecord", ">= 3.2.0", "< 5.3"
|
spec.add_dependency "activerecord", ">= 3.2.0", "< 7"
|
||||||
spec.add_dependency "activesupport", ">= 3.2.0", "< 5.3"
|
spec.add_dependency "activesupport", ">= 3.2.0", "< 7"
|
||||||
|
|
||||||
spec.add_development_dependency "bundler", "~> 2.2"
|
spec.add_development_dependency "bundler", "~> 2.2"
|
||||||
spec.add_development_dependency "rake", "~> 13.0"
|
spec.add_development_dependency "rake", "~> 13.0"
|
||||||
|
|
Loading…
Reference in New Issue