Get started.
Add Pundit to your Gemfile or install it directly from the command line.
Pundit
Pundit handles authorization through plain Ruby objects and natural OO patterns — no DSLs, no magic, no framework lock-in. Each policy is a class you own, test, and reason about. Read the docs on GitHub for the full API.
Varvet created Pundit in 2013 to solve a real problem on client projects: authorization that stayed readable as complexity grew.
Today it's downloaded over 95 million times, used across 38,000+ projects, and maintained by a community of 126 contributors. It became the de facto standard not because it was marketed, but because it works.
Add Pundit to your Gemfile or install it directly from the command line.
gem "pundit"gem install punditView on RubyGems · Source on GitHub
Pundit is built and maintained by Varvet, a digital product studio in Gothenburg and Stockholm. If your team needs help with Rails architecture or product strategy, we'd love to talk.