bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

do not alias rich text area if it is not defined #709

Closed BenMorganMY closed 8 months ago

BenMorganMY commented 9 months ago

We experienced an error with eager loading in staging for bootstrap_form. This small if statement resolves that issue.

BenMorganMY commented 8 months ago

@lcreid I've switched from using the check to now just silencing the NameError that gets raised when there's a bad alias. I've opted to disable the lint for it and add docs explaining the decision on why it's there. I see this as the simplest way forward.

BenMorganMY commented 8 months ago

@lcreid updated the rubocop lint suppression suggestion.