ruby-grape / grape

An opinionated framework for creating REST-like APIs in Ruby.
http://www.ruby-grape.org
MIT License
9.88k stars 1.22k forks source link

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

Open mileslane opened 2 years ago

mileslane commented 2 years ago

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'
  ]
Mortle commented 1 year ago

Any updates on this?

dblock commented 1 year ago

Any updates on this?

No updates. AFAIK nobody is working on this.

prateekvyas1212 commented 11 months ago

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

blshkv commented 6 months ago

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

dblock commented 6 months ago

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!