Skip to content

Commit

Permalink
Merge pull request #49 from dry-rb/add-db-default-acronym
Browse files Browse the repository at this point in the history
Add "DB" as a default acronym
  • Loading branch information
timriley authored May 24, 2024
2 parents fa675bd + e9109c9 commit cb8748e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/dry/inflector/inflections/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,16 @@ def self.uncountable(inflect)
# @since 0.1.2
# @api private
def self.acronyms(inflect)
inflect.acronym(*%w[JSON HTTP OpenSSL HMAC CSRF API CSV])
inflect.acronym(*%w[
API
CSRF
CSV
DB
HMAC
HTTP
JSON
OpenSSL
])
end

private_class_method :plural, :singular, :irregular, :uncountable, :acronyms
Expand Down

0 comments on commit cb8748e

Please sign in to comment.