Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop the initializer from blowing up when builtin_directories is empty
- Loading branch information
f66b5d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way to do this, without the need to iterate, is to use Array#concat: @paths.app.controllers.concat(buitin_directories)
f66b5d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
concat isn't implemented on the Path class (of which @paths.app.controllers is an instance of), but it seems ok to add it.
f66b5d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha, should have looked that up :)