AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
839 stars 315 forks source link

fix(Ingredient::Picture): Do not try to localize CSS class if empty #3031

Closed tvdeyen closed 3 weeks ago

tvdeyen commented 3 weeks ago

An empty css class leads to a ArgumentError in I18n.

Fix for feature introduced in https://github.com/AlchemyCMS/alchemy_cms/pull/2917

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.47%. Comparing base (dbed496) to head (881014f). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3031 +/- ## ======================================= Coverage 96.47% 96.47% ======================================= Files 237 237 Lines 6404 6404 ======================================= Hits 6178 6178 Misses 226 226 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.