summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-06-11 21:04:50 -0600
committermo k <mo@mokhan.ca>2012-06-11 21:04:50 -0600
commit516f8bf81c660bc4af9b47ef295bb3f26f33f995 (patch)
tree1cca2126409deb5f2cf2b8648bf962b237622636 /app/controllers/application_controller.rb
parentd07b24c0d161cacc8394da3cf33ba505b8df6091 (diff)
move command_for to application controller.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
1 files changed, 4 insertions, 0 deletions
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