Last active
February 4, 2018 14:17
-
-
Save jordifierro/3d0d4c9ee4eed1008c26 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