Skip to content

Commit

Permalink
Remove no longer needed call to default_scoped
Browse files Browse the repository at this point in the history
Automatically using `default_scoped` in this context is the default
behavior in Rails 6.1.
  • Loading branch information
javierm committed Jul 25, 2023
1 parent 7001f47 commit d0be855
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config/initializers/acts_as_taggable_on.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ module ActsAsTaggableOn

scope :public_for_api, -> do
where(
# TODO: remove default_scoped after upgrading to Rails 6.1
tag: Tag.default_scoped.where(kind: [nil, "category"]),
tag: Tag.where(kind: [nil, "category"]),
taggable: [Debate.public_for_api, Proposal.public_for_api]
)
end
Expand Down

0 comments on commit d0be855

Please sign in to comment.