-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow use with Rails 6.1 #152
Comments
Waiting for devise_token_auth support with Rails 6.1 in order to make existing tests. |
Also waiting for mongoid support with Rails 6.1. |
Hey @simukappu looks like the mongoid ticket has been solved. Mind having another look at it? :) |
Hi @sjieg, |
I see, fair enough. I'm a little bit surprised with these dependencies. As we're using this gem with MySQL and I don't think we use any of the MongoDB dependencies. I mean, you're doing a great job maintaining this Gem, really good stuff. Just some food for thought. I wouldn't have a clue what the standards are on having (semi-)optional dependencies. |
I also think that the gem should have less opinionated dependencies, devise_token_auth is needed for the demo I think, not for the gem to work |
Thank you for your feedback. I got it. |
Do you need any help with this @simukappu? |
Thank you @apuntovanini. Can you test this gem from development branch with your app? |
It works! @simukappu DEPRECATION WARNING: Initialization autoloaded the constants MailerHelper and ActivityNotification::Mailer.
Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails. I already wrapper initializer in Rails.application.reloader.to_prepare do end |
I've published v2.2.1 working with Rails 6.1. |
@simukappu just to understand whether the warning comes from the gem or from our side, we're still seeing the DEPRECATION WARNING: Initialization autoloaded the constants MailerHelper and ActivityNotification::Mailer.
Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails. Does it happen to you as well? Rails.application.reloader.to_prepare do
# ...
# Configure the class responsible to send e-mails.
config.mailer = 'ActivityNotification::Mailer'
# Configure the parent class responsible to send e-mails.
config.parent_mailer = 'ApplicationMailer'
# Configure the parent job class for delayed notifications.
config.parent_job = 'ApplicationJob'
# ...
end Thanks! |
Rails 6.1 has been released.
https://edgeguides.rubyonrails.org/6_1_release_notes.html
activity_notification also should support Rails 6.1.
The text was updated successfully, but these errors were encountered: