Commit 516f8bf8
Changed files (2)
app
controllers
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