Method: MotionSupport::Inflector#inflections
- Defined in:
- motion/inflector/inflections.rb
#inflections ⇒ Object
Yields a singleton instance of Inflector::Inflections so you can specify additional inflector rules.
MotionSupport::Inflector.inflections do |inflect|
inflect.uncountable 'rails'
end
195 196 197 198 199 200 201 |
# File 'motion/inflector/inflections.rb', line 195 def inflections if block_given? yield Inflections.instance else Inflections.instance end end |