Archived
To run: - ruby lib/remove_old_tags.rb DB_NAME - rake new_ui:migrate_tags - rake new_ui:migrate_categories['APP_KEY,''MODEL_NAME'] (check new_ui.rake for more details)
12 lines
360 B
Ruby
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 |