grape icon indicating copy to clipboard operation
grape copied to clipboard

Rails 7 has removed ActiveSupport::Dependencies. How should reloading be done now?

Open mileslane opened this issue 3 years ago • 6 comments

https://github.com/ruby-grape/grape/issues/358 https://github.com/ruby-grape/grape#reloading-api-changes-in-development We have:

 ActiveSupport::Dependencies.explicitly_unloadable_constants += [
    'GrapeAPI::V1::RootEndpoint',
    'GrapeAPI::RootEndpoint'
  ]

mileslane avatar Feb 07 '22 17:02 mileslane

Any updates on this?

Mortle avatar Feb 20 '23 18:02 Mortle

Any updates on this?

No updates. AFAIK nobody is working on this.

dblock avatar Feb 21 '23 14:02 dblock

i am stuck here. any help? NoMethodError: undefined method `explicitly_unloadable_constants' for ActiveSupport::Dependencies:Module

prateekvyas1212 avatar Sep 27 '23 12:09 prateekvyas1212

It sounds like it's time to move away from grape to something like pure API with VueJS, or Turbo from Hotwire

blshkv avatar Mar 16 '24 05:03 blshkv

It sounds like it's time to move away from grape to something like pure API with VueJS, or Turbo from Hotwire

We'll miss you, @blshkv!

dblock avatar Mar 16 '24 12:03 dblock