Skip to content

Commit

Permalink
[C] Bump closure_tree to ~> 7.0
Browse files Browse the repository at this point in the history
Necessary to resolve deprecation warnings as a result of raw SQL in queries.
ClosureTree/closure_tree#296
  • Loading branch information
SMaxOwok committed Apr 3, 2019
1 parent 3805c5f commit aa7fe25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gem "citeproc-ruby", "~> 1.1.0"
gem "classy_enum", "~> 4.0.0"
gem "cleanroom"
gem "clockwork", "~> 2.0.0"
gem "closure_tree", "~> 6.0"
gem "closure_tree", "~> 7.0"
gem "colorize", "~> 0.8.0"
gem "csl-styles", "~> 1.0"
gem "css_parser", "~> 1.0"
Expand Down
8 changes: 4 additions & 4 deletions api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ GEM
cleanroom (1.0.0)
clockwork (2.0.3)
tzinfo
closure_tree (6.6.0)
activerecord (>= 4.1.0)
with_advisory_lock (>= 3.0.0)
closure_tree (7.0.0)
activerecord (>= 4.2.10)
with_advisory_lock (>= 4.0.0)
coderay (1.1.2)
colorize (0.8.1)
concurrent-ruby (1.1.5)
Expand Down Expand Up @@ -532,7 +532,7 @@ DEPENDENCIES
classy_enum (~> 4.0.0)
cleanroom
clockwork (~> 2.0.0)
closure_tree (~> 6.0)
closure_tree (~> 7.0)
colorize (~> 0.8.0)
csl-styles (~> 1.0)
css_parser (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion api/app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class Comment < ApplicationRecord

# Closure Tree
has_closure_tree order: "sort_order", dependent: :destroy
has_closure_tree order: "sort_order", numeric_order: true, dependent: :destroy

# Authority
include Authority::Abilities
Expand Down

0 comments on commit aa7fe25

Please sign in to comment.