luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.57k stars 156 forks source link

Asset Helpers `Lucky` vs `::Lucky` #1695

Closed robacarp closed 1 year ago

robacarp commented 2 years ago

Describe the bug

Currently when I run my app I get this:

web    | In lib/lucky/src/lucky/asset_helpers.cr:41:13
web    | 
web    |  41 | {% if Lucky::AssetHelpers::ASSET_MANIFEST[path] %}
web    |             ^----------------------------------
web    | Error: undefined constant Lucky::AssetHelpers::ASSET_MANIFEST

I'm able to fix the bug and move on by rewriting Lucky::AssetHelpers to ::Lucky::AssetHelpers in this stanza of code.

Versions (please complete the following information):