RailsApps / rails-devise-pundit

Rails 5.0 starter app with Devise for authentication and Pundit for authorization.
http://railsapps.github.io/rails-devise-pundit/
483 stars 156 forks source link

undefined method authorize #37

Open mauro-ni opened 7 years ago

mauro-ni commented 7 years ago

undefined method `authorize' for #

  def index
      @users = User.all
      authorize User
  end
Merovex commented 6 years ago

https://github.com/RailsApps/rails-devise-pundit/issues/10

This fixed it for me.