Module: FastUnderscore::ActiveSupportedDelayedPatch

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

Overview

Hooks into ActiveSupport::Inflector and waits for the #underscore method to be defined. When it is, it automatically redefines it.

Instance Method Summary collapse

Instance Method Details

#method_added(method) ⇒ Object



47
48
49
50
# File 'lib/fast_underscore.rb', line 47

def method_added(method)
  FastUnderscore.active_support if method == :underscore
  super
end