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