orbit-basic/app/controllers/obit_frontend_component_con...

10 lines
247 B
Ruby

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