added new tag batch change model

This commit is contained in:
albert
2011-08-03 18:32:57 -04:00
parent 04103c3352
commit 3e2b2e7418
6 changed files with 94 additions and 17 deletions

View File

@@ -0,0 +1,14 @@
module Moderator
class TagsController < ApplicationController
before_filter :moderator_only
def edit
end
def update
tag_batch_change = TagBatchChange.new(params[:tag][:predicate], params[:tag][:consequent])
tag_batch_change.execute
redirect_to edit_moderator_tag_path, :notice => "Posts updated"
end
end
end