Skip to content

Instantly share code, notes, and snippets.

@Breefield
Created November 21, 2012 21:13
Show Gist options
  • Select an option

  • Save Breefield/4127759 to your computer and use it in GitHub Desktop.

Select an option

Save Breefield/4127759 to your computer and use it in GitHub Desktop.
Inherited Controllers
# In API/V1/alerts_controller.rb
module Api
module V1
class AlertsController < Api::V1::BaseController
...
end
end
end
# In API/V1/base_controller.rb
module Api
module V1
class BaseController < ApplicationController
...
end
end
end
@Breefield
Copy link
Copy Markdown
Author

This works for me locally, extending base_controller, but on Heroku I get an uninitialized constant name error Api::V1::BaseController in alerts_controller.rb line 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment