Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential ArgumentError in development
When operating in a development environment, changing Griddler.configuration.processor_class can raise an ArgumentError: A copy of EmailProcessor has been removed from the module tree but is still active! To prevent this, change our reference to the class to a string and reload it when the class is reloaded (as it is in Rails.env.development?) and constantize that string when needed.
- Loading branch information
1 parent
2ef2ffb
commit c49cff4
Showing
2 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters