lib/hanami/utils/inflector.rb in hanami-utils-1.0.2 vs lib/hanami/utils/inflector.rb in hanami-utils-1.0.3
- old
+ new
@@ -224,11 +224,12 @@
'sheep' => 'sheep',
'species' => 'species',
'police' => 'police',
# regressions
# https://github.com/hanami/utils/issues/106
- 'album' => 'albums'
+ 'album' => 'albums',
+ 'area' => 'areas'
)
# Irregular rules for singulars
#
# @since 0.6.0
@@ -265,11 +266,13 @@
'series' => 'series',
'sheep' => 'sheep',
'species' => 'species',
'police' => 'police',
# fallback
+ 'areas' => 'area',
'hives' => 'hive',
- 'phases' => 'phase'
+ 'phases' => 'phase',
+ 'exercises' => 'exercise'
)
# Block for custom inflection rules.
#
# @param [Proc] blk custom inflections