-
-
Save joshmcarthur/d6404aa03354447ec6b8 to your computer and use it in GitHub Desktop.
Allow using capital letters in API module
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
# config/initializers/inflections.rb | |
ActiveSupport::Inflector.inflections(:en) do |inflect| | |
inflect.acronym 'API' | |
end | |
# app/controllers/api/widgets_controller.rb | |
module API | |
class WidgetsController < BaseController | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment