instance method
_singularize
Ruby on Rails 5.0.7.2
Since v3.1.12 Private — implementation detail, not part of the public APISignature
_singularize(string)
No documentation comment.
Parameters
-
stringreq
Source
# File activemodel/lib/active_model/naming.rb, line 194
def _singularize(string)
ActiveSupport::Inflector.underscore(string).tr('/'.freeze, '_'.freeze)
end
Defined in activemodel/lib/active_model/naming.rb line 194
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Name