Module: FastParameterize::ActiveSupportInflectorPatch
- Defined in:
- lib/fast_parameterize.rb
Overview
Override ActiveSupport::Inflector::parameterize to use FastParameterize::parameterize.
Instance Method Summary collapse
Instance Method Details
#parameterize(string, separator: '-', preserve_case: false, locale: nil) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fast_parameterize.rb', line 15 def parameterize(string, separator: '-', preserve_case: false, locale: nil) FastParameterize.parameterize( ActiveSupport::Inflector.transliterate(string, locale: locale), separator: separator, preserve_case: preserve_case ) end |