Sha256: a359b0c6ddb7ac78e0bdb6f7fa358b1559f05ad680a44f2345b910f44232c97c
Contents?: true
Size: 682 Bytes
Versions: 31
Compression:
Stored size: 682 Bytes
Contents
require 'active_support/dependencies' module ActiveSupport::Dependencies alias_method :require_or_load_without_multiple, :require_or_load def require_or_load(file_name, const_path = nil) if file_name.starts_with?(Rails.root.to_s + '/app') relative_name = file_name.gsub(Rails.root.to_s, '') @engine_paths ||= Rails::Application::Railties.engines.collect{|engine| engine.config.root.to_s } @engine_paths.each do |path| engine_file = File.join(path, relative_name) require_or_load_without_multiple(engine_file, const_path) if File.file?(engine_file) end end require_or_load_without_multiple(file_name, const_path) end end
Version data entries
31 entries across 31 versions & 2 rubygems