put setup APP var setup into Orbit class

This commit is contained in:
Matthew Fu authored and Christophe Vilayphiou committed 2012-01-24 12:28:32 +08:00
1 parent 4ed8a2164c
commit 959f3e8b2f
3 files changed
+6 -16

No files matched your search

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