Skip to content

Comments

Don't raise when including CableReadyHelper#256

Merged
marcoroth merged 2 commits intomainfrom
dont-raise-when-including-cablereadyhelper
Feb 14, 2023
Merged

Don't raise when including CableReadyHelper#256
marcoroth merged 2 commits intomainfrom
dont-raise-when-including-cablereadyhelper

Conversation

@marcoroth
Copy link
Member

Type of PR

Enhancement

Description

Instead of raising an exception when including the CableReadyHelper module we print a warning and include the right CableReady::ViewHelper module anyway, so we are not breaking any existing code.

Why should this be added

This is a much better DX than raising an error and requiring the developer to fix it right away.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing

Instead print a warning and include the module anyway, so we are not breaking any exisiting code
@marcoroth marcoroth force-pushed the dont-raise-when-including-cablereadyhelper branch from 8ff8e71 to 0d53064 Compare February 14, 2023 15:47
@marcoroth marcoroth merged commit 1c28d83 into main Feb 14, 2023
@marcoroth marcoroth deleted the dont-raise-when-including-cablereadyhelper branch February 14, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant