Skip to content

Commit

Permalink
Add following/followers to before filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Mar 25, 2012
1 parent adea984 commit 624db34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class UsersController < ApplicationController
before_filter :authenticate, :only => [:index, :edit, :update, :destroy]
before_filter :authenticate,
:only => [:index, :edit, :update, :destroy,
:followers, :following]
before_filter :correct_user, :only => [:edit, :update]
before_filter :admin_user, :only => :destroy

Expand Down

0 comments on commit 624db34

Please sign in to comment.