[BUG] Generator did not include include Noticed::Model
in the Notification model
#353
Closed
3 tasks done
Bug Report
Describe the Bug:
I've just installed
noticed
and on initial setup I ran into a stumbling block. I was getting the error:It turns out that my generated
app/models/notification.rb
did not include the lineinclude Noticed::Model
.I spotted this line was required via the Screencast, but it might be a bug in the generator, or something worth mentioning in the docs. I can see it's in the generator, but I'm not sure if this is actually being triggered:
https://github.com/excid3/noticed/blob/6472cbeb37a5ab6c3a0192dbebc5b718094fa4ad/lib/generators/noticed/model_generator.rb#L22
To Reproduce:
rails generate noticed:model
Expected Behavior:
include
include Noticed::Model
in the generated Notification modelEnvironment:
1.6.3
3.1.2
7.1.0
macOS 14.1.2 (23B92)
Checklist:
The text was updated successfully, but these errors were encountered: