-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix record not found error when session no longer exists in database (#…
…27) This addresses issue #7. - 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!`. - Adds a system spec for this scenario
- Loading branch information
1 parent
fb63de7
commit 3bef013
Showing
6 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
demo_mode (1.2.2) | ||
demo_mode (1.2.3) | ||
cli-ui | ||
rails (>= 6.1) | ||
sprockets-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: .. | ||
specs: | ||
demo_mode (1.2.2) | ||
demo_mode (1.2.3) | ||
cli-ui | ||
rails (>= 6.1) | ||
sprockets-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: .. | ||
specs: | ||
demo_mode (1.2.2) | ||
demo_mode (1.2.3) | ||
cli-ui | ||
rails (>= 6.1) | ||
sprockets-rails | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module DemoMode | ||
VERSION = '1.2.2' | ||
VERSION = '1.2.3' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters