Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringify path if Rails version > 7 #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sideshowbandana
Copy link

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.

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
Copy link
Collaborator

wagenet commented Jan 12, 2024

@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
Copy link

factyy commented Jan 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants