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

[DUPLICATE] Error from undefined method `authorize' #18

Closed FaiqAdam closed 10 years ago

FaiqAdam commented 10 years ago
   before_filter :authenticate_user!
    after_action :verify_authorized
    def index
   @users = User.all
   authorize User
  end
DanielKehoe commented 10 years ago

Duplicate of issue #10 .