graphiti-api / graphiti-rails

MIT License
53 stars 28 forks source link

Stringify path if Rails version > 7 #107

Open sideshowbandana opened 5 months ago

sideshowbandana commented 5 months ago

Calling recognize_path with a path that is a symbol will result in a:

NoMethodError: undefined method `include?' for an instance of Symbol

This results in a nil value being returned which leads to this error for the developer:

Graphiti::Errors::InvalidLink:
  Api::V2::GymResource: Cannot link to sideload :my_resource!

  Make sure the endpoint "/api/v2/my_resource" exists with action :index, or customize the endpoint for Api::V2::MyResource.

  If you do not wish to generate a link, pass link: false or set
  self.autolink = false.
wagenet commented 5 months ago

@sideshowbandana I changed jobs a while back and am no longer working with Rails. If you, or anyone you know, are interested in helping maintain this project please let me know.

factyy commented 5 months ago

@wagenet , sorry to interrupt your discussion but wanted to ask whether you mean interested in maintaining this particular gem or the whole Graphiti project?