| Class | JsRoutes |
| In: |
lib/js_routes/engine.rb
lib/js_routes/version.rb lib/js_routes.rb |
| Parent: | Object |
| VERSION | = | "1.4.4" | ||
| DEFAULT_PATH | = | File.join('app','assets','javascripts','routes.js') | OPTIONS | |
| DEFAULTS | = | { namespace: "Routes", exclude: [], include: //, file: DEFAULT_PATH, prefix: -> { Rails.application.config.relative_url_root || "" }, url_links: false, camel_case: false, default_url_options: {}, compact: false, serializer: nil, special_options_key: "_options", application: -> { Rails.application } | ||
| NODE_TYPES | = | { GROUP: 1, CAT: 2, SYMBOL: 3, OR: 4, STAR: 5, LITERAL: 6, SLASH: 7, DOT: 8 | ||
| LAST_OPTIONS_KEY | = | "options".freeze | ||
| FILTERED_DEFAULT_PARTS | = | [:controller, :action] | ||
| URL_OPTIONS | = | [:protocol, :domain, :host, :port, :subdomain] |
Under rails 3.1.1 and higher, perform a check to ensure that the full environment will be available during asset compilation. This is required to ensure routes are loaded.