summaryrefslogtreecommitdiff
path: root/app/controllers/my/base_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/my/base_controller.rb')
-rw-r--r--app/controllers/my/base_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/my/base_controller.rb b/app/controllers/my/base_controller.rb
new file mode 100644
index 00000000..d8ea0c48
--- /dev/null
+++ b/app/controllers/my/base_controller.rb
@@ -0,0 +1,11 @@
+module My
+ class BaseController < ApplicationController
+ before_filter :restrict_access!
+
+ private
+
+ def restrict_access!
+ redirect_to root_path unless signed_in?
+ end
+ end
+end