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

Grape mounted on Rails not reloading in development #303

Closed
nielsen opened this issue Jan 2, 2013 · 1 comment
Closed

Grape mounted on Rails not reloading in development #303

nielsen opened this issue Jan 2, 2013 · 1 comment

Comments

@nielsen
Copy link

nielsen commented Jan 2, 2013

Currently, if you have Grape mounted in Rails 3.2.9 via routes.rb:

mount API => "/"

with the class defined in lib/api.rb

require 'grape'

class API < Grape::API
  prefix "api"
  version 'v1'
  format :json

  resource "ping" do
    get do
      'pong'
    end
  end

end

If I change the code in the method 'get,' I have to restart the server, even in development, for the code to reload.

@dblock
Copy link
Member

dblock commented Jan 2, 2013

This is a dup of #131. There're some solutions provided in #131, but I would really like an official way to support this via Railties.

@dblock dblock closed this as completed Jan 2, 2013
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

No branches or pull requests

2 participants