From fb58c0ed4a167ff04b7cbf4e4560fffb68109638 Mon Sep 17 00:00:00 2001 From: Gosha Arinich Date: Tue, 1 Jan 2013 20:35:43 +0300 Subject: remove unnecessary always-nil var from #compact --- activesupport/lib/active_support/dependencies/autoload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/dependencies/autoload.rb b/activesupport/lib/active_support/dependencies/autoload.rb index 9fc58a338f..c0dba5f7fd 100644 --- a/activesupport/lib/active_support/dependencies/autoload.rb +++ b/activesupport/lib/active_support/dependencies/autoload.rb @@ -34,7 +34,7 @@ module ActiveSupport def autoload(const_name, path = @_at_path) unless path - full = [name, @_under_path, const_name.to_s, path].compact.join("::") + full = [name, @_under_path, const_name.to_s].compact.join("::") path = Inflector.underscore(full) end -- cgit v1.2.3