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

Unexpose always throw exception #120

Open
benyu opened this issue Apr 8, 2015 · 2 comments
Open

Unexpose always throw exception #120

benyu opened this issue Apr 8, 2015 · 2 comments
Labels

Comments

@benyu
Copy link

benyu commented Apr 8, 2015

class Sticker < Grape::Entity
      expose :id
      expose :thumb do |model, opts|
        model.thumb.url
      end
end

class StickerMess < Sticker
      expose :description, :times
      unexpose :thumb
end

The grape server mount as api of rails

 : rails s

Users/benyu/.rvm/gems/ruby-2.0.0-p598/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in `rescue in execute_if_updated': Rails::Application::RoutesReloader#execute_if_updated delegated to updater.execute_if_updated, but updater is nil: #<Rails::Application::RoutesReloader:0x007ff1c79eded0 @paths=["/Users/benyu/www/babe/config/routes.rb"], @route_sets=[#ActionDispatch::Routing::RouteSet:0x007ff1c4722fa0]> (RuntimeError)

@dblock
Copy link
Member

dblock commented Apr 8, 2015

Seems to be reloader-related. Can you please turn this into a spec or something that we can see that reproduces the problem?

@marshall-lee
Copy link
Member

@benyu
Could you provide more verbose error output at least?

Ideally I want a whole application that fails. It would be probably challenging to write a failing spec for this issue so I think that investigating a failing app will help at first.

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

No branches or pull requests

3 participants