Created
November 21, 2012 21:13
-
-
Save Breefield/4127759 to your computer and use it in GitHub Desktop.
Inherited Controllers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.