From 516f8bf81c660bc4af9b47ef295bb3f26f33f995 Mon Sep 17 00:00:00 2001 From: mo k Date: Mon, 11 Jun 2012 21:04:50 -0600 Subject: move command_for to application controller. --- app/controllers/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e8065d95..09bdba61 100644 --- a/app/controllers/application_controller.rb +++ b/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 -- cgit v1.2.3