Commit 516f8bf8

mo k <mo@mokhan.ca>
2012-06-12 03:04:50
move command_for to application controller.
1 parent d07b24c
app/controllers/application_controller.rb
@@ -1,3 +1,7 @@
 class ApplicationController < ActionController::Base
   protect_from_forgery
+
+  def command_for(command)
+    command.new(current_user)
+  end
 end
app/controllers/comments_controller.rb
@@ -10,8 +10,4 @@ class CommentsController < ApplicationController
     flash[:notice] = params[:comment][:body]
     redirect_to :controller => 'creations', :action => 'show', :id => params[:creation_id]
   end
-
-  def command_for(command)
-    command.new(current_user)
-  end
 end