assetPath('jquery-ui/loading.gif'); */ protected function assetPath($file, array $options = []) { if (!isset($options['digest'])) { $options['digest'] = true; } if ($options['digest']) { if ($path = \Rails::assets()->findCompiledFile($file)) { return $path; } } $root = \Rails::application()->router()->rootPath(); if ($root == '/') { $root = ''; } return $root . \Rails::assets()->prefix() . '/' . $file; } }