repo.or.cz
/
beast-modified.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
beast rev 2066
[beast-modified.git]
/
app
/
controllers
/
moderators_controller.rb
blob
4c527015902f172f321050332a8b9bcb2edefc55
1
class ModeratorsController < ApplicationController
2
before_filter :login_required
3
4
def destroy
5
Moderatorship.delete_all ['id = ?', params[:id]]
6
redirect_to user_path(params[:user_id])
7
end
8
9
alias authorized? admin?
10
end