First version for App and Object auth.Taking Announcement as experiment

This commit is contained in:
Matthew Kaito Juyuan Fu authored and Christophe Vilayphiou committed 2012-02-29 18:55:55 +08:00
1 parent 3bcd7ea349
commit cc550c5745
28 files changed
+146 -34

No files matched your search

@@ -0,0 +1,10 @@
class OrbitFrontendComponentController< ApplicationController
before_filter :setup_vars
before_filter {|c| c.front_end_available(@app_title)}
layout 'module_widget'
def setup_vars
@app_title = request.fullpath.split('/')[2]
end
end