question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix pundit deprecation message

See original GitHub issue

Pundit gem is showing the following deprecation message

DEPRECATION WARNING: 'include Pundit' is deprecated. Please use 'include Pundit::Authorization' instead.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Pankaj-SinghRcommented, Jul 27, 2022

Hey, @vedant-jain03 I’m getting no error in console btw I’m using docker container. Do I need to setup Manually to replicate this issue

I will prefer that but the simplest way to do is that to just find the include Pundit and replace it! The description says everything!

If I replace include Pundit with include Pundit::Authorization how would I know it worked cuz my terminal not showing any error

hmm, for that I will prefer the manual setup @pulkit-30 any way we can see rails deprecation errors in docker?

Thanks it’s showing now. I’ll update with the progress

1reaction
Pankaj-SinghRcommented, Jul 27, 2022

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pundit::AuthorizationNotPerformedError - ruby on rails
I suggest reading how to define policy rules in the Pundit documentation. There are some great examples.
Read more >
Pundit Release Notes
Pundit Release Notes. 1.8.3 (October 24th 2022) Fix npm dependencies. 1.8.2 (August 19th 2022) Added feedthepund.it annotation ...
Read more >
https://raw.githubusercontent.com/varvet/pundit/ma...
Pundit ## 2.2.0 (2022-02-11) ### Fixed - Using `policy_class` and a namespaced record now passes only the record when instantiating the policy.
Read more >
[Solved]-How to fix Ruby 2.7 deprecation warning for "last argument ...
Coding example for the question How to fix Ruby 2.7 deprecation warning for "last argument"-ruby.
Read more >
RubyGems - pundit - Versions diffs - 0.3.0 → 1.0.0 - Diffend
Extend the default `ApplicationPolicy` with an `ApplicationPolicy::Scope` (#120). 6. 21. - Fix RSpec 3 deprecation warnings for built-in matchers (#162) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found