Using autoload to require the different session stores #8

Merged
merged 1 commit into from Sep 23, 2011

Projects

None yet

2 participants

@arvida

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
Owner

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

Cool, let me know if you need any help.

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

Merged. Thanks for the cleanup!

@arvida

Nice 👍

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