victor-am / rails-ranger

🤠 An opinionated AJAX client for Ruby on Rails APIs
https://victor-am.github.io/rails-ranger/
MIT License
32 stars 5 forks source link

Move raw requests (GET, POST, etc) to RouteBuilder #30

Closed victor-am closed 5 years ago

victor-am commented 5 years ago

This was done to take advantage from the namespace features, that way if you do api.namespace('users').get('profile') it will work as expected.

Also with these changes, the RailsRanger class doesn't depend on the PathBuilder class anymore 🎉

Fixes issue #28

sourcelevel-bot[bot] commented 5 years ago

Ebert has finished reviewing this Pull Request and has found:

You can see more details about this review at https://ebertapp.io/github/victor-am/rails-ranger/pulls/30.