Class: Panda::Editor::AssetLoader
- Inherits:
-
Object
- Object
- Panda::Editor::AssetLoader
- Defined in:
- lib/panda/editor/asset_loader.rb
Constant Summary collapse
- GITHUB_RELEASES_URL =
'https://api.github.com/repos/tastybamboo/panda-editor/releases/latest'- ASSET_CACHE_DIR =
Rails.root.join('tmp', 'panda_editor_assets')
Class Method Summary collapse
Class Method Details
.javascript_url ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/panda/editor/asset_loader.rb', line 21 def javascript_url if use_compiled_assets? compiled_javascript_url else '/assets/panda/editor/application.js' end end |
.load_assets ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/panda/editor/asset_loader.rb', line 13 def load_assets if use_compiled_assets? load_compiled_assets else load_development_assets end end |
.stylesheet_url ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/panda/editor/asset_loader.rb', line 29 def stylesheet_url if use_compiled_assets? compiled_stylesheet_url else '/assets/panda/editor/application.css' end end |