Skip to content

Commit

Permalink
Bump rubocop-rails from 2.24.1 to 2.25.0 (#2411)
Browse files Browse the repository at this point in the history
* ---
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]>
  • Loading branch information
dependabot[bot] and rosschapman authored May 22, 2024
1 parent 7453807 commit b2b950f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ GEM
nio4r (~> 2.0)
pundit (2.3.2)
activesupport (>= 3.0.0)
racc (1.7.3)
racc (1.8.0)
rack (2.2.9)
rack-session (1.0.2)
rack (< 3)
Expand Down Expand Up @@ -373,7 +373,7 @@ GEM
redcarpet (3.6.0)
redis-client (0.22.1)
connection_pool
regexp_parser (2.9.1)
regexp_parser (2.9.2)
reline (0.5.5)
io-console (~> 0.5)
rexml (3.2.8)
Expand Down Expand Up @@ -432,7 +432,7 @@ GEM
rubocop-performance (1.21.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.24.1)
rubocop-rails (2.25.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
Expand Down
2 changes: 1 addition & 1 deletion app/furniture/journal/entry_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def permitted_attributes(_params)

class Scope < ApplicationScope
def resolve
scope.includes(:journal).where("published_at < ?", Time.zone.now)
scope.includes(:journal).where(published_at: ...Time.zone.now)
.or(scope.includes(:journal).where(journal: {room: person.rooms}))
end
end
Expand Down

0 comments on commit b2b950f

Please sign in to comment.