Method: ActiveSupport::Dependencies#load_once_path?

Defined in:
activesupport/lib/active_support/dependencies.rb

#load_once_path?(path) ⇒ Boolean

Returns:

  • (Boolean)

436
437
438
439
# File 'activesupport/lib/active_support/dependencies.rb', line 436

def load_once_path?(path)
  # to_s works around a ruby1.9 issue where #starts_with?(Pathname) will always return false
  autoload_once_paths.any? { |base| path.starts_with? base.to_s }
end