orbit-basic/app/controllers/orbit_frontend_component_co...

12 lines
360 B
Ruby
Raw Permalink Normal View History

class OrbitFrontendComponentController< ApplicationController
include OrbitCategory::Categorizing
before_filter :setup_vars
2012-01-10 10:29:11 +00:00
before_filter {|c| c.front_end_available(@app_title)}
2012-05-13 13:55:39 +00:00
layout "module_widget"
def setup_vars
@app_title = request.fullpath.split('/')[2]
@module_app ||= ModuleApp.first(conditions: {:key => @app_title} )
end
2012-01-10 10:29:11 +00:00
end