-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoload_dirs does not affect loading (0.7.6.6) #6
Comments
I can't replicate this. A simple:
Gives me the expected default-dirs + the new "pictures"-dir in the second print. |
Ah, markdown I love thou.. :) |
Resources will still be read from the defaults, but not from "pictures".
|
Ah, it's Chingu::Window that fills in default dirs... try p Image.autoload_dirs in Chingu::Window#setup for example. |
Yes, you are quite right; thanks for sorting me out there. Putting the code into the Chingu::Window::setup made it work. Perhaps you should just push your default directories into that list rather than overwriting it, then it wouldn't matter exactly when the user added their preferred directories? |
good idea, done! :) |
Image::autoload_dirs and Sample::autoload_dirs methods do not correctly connect to the class instance variable used to autoload assets. Instead, they return a regular class variable (@@autoload_dirs) which is always an empty array and is not the same array as the one used to load assets, so altering it has no effect.
The text was updated successfully, but these errors were encountered: