Module: FastParameterize::ActiveSupportDelayedPatch

Included in:
ActiveSupport::Inflector
Defined in:
lib/fast_parameterize.rb

Overview

Override ActiveSupport::Inflector::method_added so that if and when the parameterize method gets defined, we can immediately redefine it.

Instance Method Summary collapse

Instance Method Details

#method_added(method) ⇒ Object



38
39
40
41
# File 'lib/fast_parameterize.rb', line 38

def method_added(method)
  FastParameterize.active_support if method == :parameterize
  super
end