-
-
Save Phathdt/59668044d569584b9c6b6f82ec4b2678 to your computer and use it in GitHub Desktop.
Example of an Rails api ApiController when using ActiveSupport::Concern to encapsulate controllers common code
This file contains 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
module Api::V1 | |
class ApiController < ApplicationController | |
include Concerns::Authenticator | |
include Concerns::ErrorHandler | |
include Concerns::VersionExpirationHandler | |
include Concerns::Internationalizator | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment