Changes Session.find to Session.find_by in DemoMode::Demoable#current_demo_session to prevent a Not Found exception when the session is no longer in the database, e.g., after resetting the database.
Checks that the current_demo_session is not nil in DemoMode::Demoable#demo_splash!.
This addresses issue https://github.com/Betterment/demo_mode/issues/7.
Session.find
toSession.find_by
inDemoMode::Demoable#current_demo_session
to prevent a Not Found exception when the session is no longer in the database, e.g., after resetting the database.current_demo_session
is notnil
inDemoMode::Demoable#demo_splash!
.