You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any plans to support rails 7? The gem is currently preventing me from upgrading my rails 6.1 app to rails 7 as it breaks down (#302) with rails 7.
The text was updated successfully, but these errors were encountered:
Hey, the problem is that in Rails 7 you cannot autoload reloadable code so early.
Also, it does not make sense that ImpressionistController::ClassMethods and ImpressionistController::InstanceMethods live in a reloadable file, because changes in that code won't be reflected in ActionController::Base, which is decorated only once during boot.
Would it make sense to extract those two decorators to lib and require them normally?
Instead of depending on autoload to bring in the ImpressionistController
constant, we manually bring it with a call to require and just move that file
to lib.
Prior to this, Rails would emit a warning on startup about needing to use
autoload durning an initializer like this, letting us know that a future
version of Rails will error.
This should hopefully remove that error and still allow these controller mixins
to be available. Note that Rails 7.1 will eventually be a future blocker here.
PS. This is the recommended approach by Xavier here:
charlotte-ruby#305
Co-authored-by: stefannibrasil <[email protected]>
Is there any plans to support rails 7? The gem is currently preventing me from upgrading my rails 6.1 app to rails 7 as it breaks down (#302) with rails 7.
The text was updated successfully, but these errors were encountered: