Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

without_default_scope is not working in rails 6.0.2.2. #490

Closed
Hareramrai opened this issue Apr 21, 2020 · 1 comment
Closed

without_default_scope is not working in rails 6.0.2.2. #490

Hareramrai opened this issue Apr 21, 2020 · 1 comment

Comments

@Hareramrai
Copy link

I am using this gem and it's not working for without_default_scope: true option.

I have below code snippet.


class Ticket < ApplicationRecord
  acts_as_paranoid without_default_scope: true
end

Ticket.find(1)
SELECT "tickets".* FROM "tickets" WHERE "tickets"."deleted_at" IS NULL AND "tickets"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]

I am using ruby 2.7.1, rails 6.0.2.2 and paranoia 2.4.2.

@Hareramrai
Copy link
Author

It's working, nevermind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant