Method: ActiveSupport::Inflector::Inflections#uncountable
- Defined in:
- lib/active_support/inflector/inflections.rb
#uncountable(*words) ⇒ Object
Specifies words that are uncountable and should not be inflected.
uncountable 'money'
uncountable 'money', 'information'
uncountable %w( money information rice )
208 209 210 |
# File 'lib/active_support/inflector/inflections.rb', line 208 def uncountable(*words) @uncountables.add(words) end |