Repository navigation
Issue with Notification Class After Commit 0e49323 #533
BerNarDoMelow
started this conversation in
General
Replies: 1 comment 1 reply
|
hey @BerNarDoMelow , I came across the same issue and fixed it with this: class ApplicationNotifier < Noticed::Event
+ remove_const "Notification"
+ Notification = Class.new(Noticed::Notification)
end |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi!
After the changes in commit 0e49323, we started encountering an issue due to the following modification:
notifier.const_set :Notification, Class.new(const_defined?(:Notification) ? const_get(:Notification) : Noticed::Notification)The problem arises because we already have a class named Notification. For example:
This change is causing conflicts in our application. Is there a recommended workaround for this?
Thanks in advance for your help!
Note: In the meantime, I came across this discussion (#516), but in our case, renaming our Notification model is not an option.
All reactions