Module: FastParameterize::ActiveSupportStringPatch
- Defined in:
- lib/fast_parameterize.rb
Overview
Override String#parameterize to use FastParameterize::parameterize.
Instance Method Summary collapse
Instance Method Details
#parameterize(separator: '-', preserve_case: false, locale: nil) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/fast_parameterize.rb', line 26 def parameterize(separator: '-', preserve_case: false, locale: nil) FastParameterize.parameterize( ActiveSupport::Inflector.transliterate(self, locale: locale), separator: separator, preserve_case: preserve_case ) end |