Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Using autoload to require the different session stores #8

merged 1 commit into from Sep 23, 2011


None yet
2 participants

arvida commented Sep 20, 2011

I added autoload for requiring the session stores so you don't have to rescue on LoadError and not require files that is not used by the app using the gem.
I guess it comes down to personal coding style/preferences about using rescue LoadError vs autoload for handling stuff like this =) What you think?


brianhempel commented Sep 20, 2011

Thanks! Autoload is definitely cleaner, you're right. I'll take a look to make sure isn't some behavior that rescue gives us that autoload doesn't (e.g. robustness when the programmer loads stuff in a strange order, or sets the collection name before declaring the sessions store).

arvida commented Sep 20, 2011

Cool, let me know if you need any help.

@brianhempel brianhempel merged commit 66baa11 into brianhempel:master Sep 23, 2011


brianhempel commented Sep 23, 2011

Merged. Thanks for the cleanup!

arvida commented Sep 23, 2011

Nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment