This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/controllers/orbit_frontend_component_co...

12 lines
360 B
Ruby

class OrbitFrontendComponentController< ApplicationController
include OrbitCategory::Categorizing
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]
@module_app ||= ModuleApp.first(conditions: {:key => @app_title} )
end
end