Merge pull request #8675 from goshakkk/cleanup
Remove unnecessary always-nil var from #compact
This commit is contained in:
commit
7c6246bbf0
@ -34,7 +34,7 @@ def self.extended(base) # :nodoc:
|
|||||||
|
|
||||||
def autoload(const_name, path = @_at_path)
|
def autoload(const_name, path = @_at_path)
|
||||||
unless 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)
|
path = Inflector.underscore(full)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user