Closed maengkom closed 7 years ago
Hey @maengkom. This is warning from the 5.0: DEPRECATION WARNING: to_prepare is deprecated and will be removed from Rails 5.1 (use ActiveSupport::Reloader.to_prepare instead)
@jdarnok thanks for reply, what should I do ? sorry just couple months using rails. I have to fork and modify it correct ? and where is it ?
Thanks.
@maengkom if you really want that feature without sweat, just revert to rails 5.0 - it's not desirable solution, but maybe (MAYBE) someone will patch that gem. If you want to fork, you must change all 'to_prepare' statements or wait for the fix. Unfortunately I don't have time for making those fixes ATM, and to be honest I don't know the project's codebase so I can't help you with that.
@maengkom Check some pull requests though https://github.com/phatworx/devise_security_extension/pull/188
@jdarnok yes thanks for the link. I'll try to read the PR code.
@maengkom Here is what I did for this issue, till the gem gets updated to Rails 5.1
https://github.com/phatworx/devise_security_extension/issues/223#issuecomment-317129505
@maengkom upgrade the gem to lastest version will fix it.
gem 'devise_security_extension', git: 'https://github.com/phatworx/devise_security_extension.git'
@narutoo9x oh yeah I never reference to git directly, it works. Thanks. @MohamedBrary thank you for the tip.
Add to gemfile, then
bundle install
. After that just typerails generate devise_security_extension:install
raise this error.