Sha256: 47510e77e0d6a414a1bbc624582fb24b96ac37a163a786c1291dc8360e5c1a42
Contents?: true
Size: 468 Bytes
Versions: 6
Compression:
Stored size: 468 Bytes
Contents
class ModeratorsController < BaseController before_filter :admin_required def create @forum = Forum.find(params[:forum_id]) @user = User.find(params[:user_id]) @moderatorship = Moderatorship.create!(:forum => @forum, :user => @user) respond_to do |format| format.js end end def destroy @moderatorship = Moderatorship.find(params[:id]) @moderatorship.destroy respond_to do |format| format.js end end end
Version data entries
6 entries across 6 versions & 1 rubygems