ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.73k stars 238 forks source link

Autoload ⚡️ #130

Closed sj26 closed 8 years ago

sj26 commented 8 years ago

Prevent loading upstream requirements until they are needed by using native ruby autoload.

Wrapping the interior constants in autoloads and pushing their dependencies down means the loads of those required gems only happens when they are first used, speeding up the initial boot time of projects using Bundler and Rails for example.

nashby commented 8 years ago

@sj26 makes sense. Thank you!