//<% environment.context_class.instance_eval { include ActionView::Helpers::UrlHelper } %> //<% url = RedBase::Engine.routes.url_helpers %> // Prefix url of API window.API_PREFIX = "/api/v1/"; // Modules is an array of dashboard modules window.DModules = []; // This variable will contains all the modules name which should be loaded // as Dashboard application dependency window.dashboard_dependencies = []; // Template prefix window.templates_path = "/templates/"; // Any element of this queue will be appear as error after load event window.ErrorQueue = []; window.DashboardURL = "<%= url.dashboard_path %>";