Skip to content

Commit b2b950f

Browse files
Bump rubocop-rails from 2.24.1 to 2.25.0 (#2411)
* --- updated-dependencies: - dependency-name: rubocop-rails dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fixes new cop warning --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ross Chapman <[email protected]>
1 parent 7453807 commit b2b950f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ GEM
314314
nio4r (~> 2.0)
315315
pundit (2.3.2)
316316
activesupport (>= 3.0.0)
317-
racc (1.7.3)
317+
racc (1.8.0)
318318
rack (2.2.9)
319319
rack-session (1.0.2)
320320
rack (< 3)
@@ -373,7 +373,7 @@ GEM
373373
redcarpet (3.6.0)
374374
redis-client (0.22.1)
375375
connection_pool
376-
regexp_parser (2.9.1)
376+
regexp_parser (2.9.2)
377377
reline (0.5.5)
378378
io-console (~> 0.5)
379379
rexml (3.2.8)
@@ -432,7 +432,7 @@ GEM
432432
rubocop-performance (1.21.0)
433433
rubocop (>= 1.48.1, < 2.0)
434434
rubocop-ast (>= 1.31.1, < 2.0)
435-
rubocop-rails (2.24.1)
435+
rubocop-rails (2.25.0)
436436
activesupport (>= 4.2.0)
437437
rack (>= 1.1)
438438
rubocop (>= 1.33.0, < 2.0)

app/furniture/journal/entry_policy.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def permitted_attributes(_params)
2222

2323
class Scope < ApplicationScope
2424
def resolve
25-
scope.includes(:journal).where("published_at < ?", Time.zone.now)
25+
scope.includes(:journal).where(published_at: ...Time.zone.now)
2626
.or(scope.includes(:journal).where(journal: {room: person.rooms}))
2727
end
2828
end

0 commit comments

Comments
 (0)