instance method
_singularize
Ruby on Rails 5.1.7
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 193
def _singularize(string)
ActiveSupport::Inflector.underscore(string).tr("/".freeze, "_".freeze)
end
Defined in activemodel/lib/active_model/naming.rb line 193
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Name