Method: ActiveSupport::Inflector#inflections
- Defined in:
- lib/active_support/inflector/inflections.rb
#inflections ⇒ Object
Yields a singleton instance of Inflector::Inflections so you can specify additional inflector rules.
Example:
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable "rails"
end
166 167 168 169 170 171 172 |
# File 'lib/active_support/inflector/inflections.rb', line 166 def inflections if block_given? yield Inflections.instance else Inflections.instance end end |