This repository has been archived by the owner on Dec 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ExceptionManager dependency. Added example of how bindings of a…
…ll exceptions can be persisted.
- Loading branch information
1 parent
8b32ed8
commit 770ec23
Showing
8 changed files
with
21 additions
and
22 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 |
---|---|---|
|
@@ -8,6 +8,5 @@ rvm: | |
- 2.1.7 | ||
- 2.1.6 | ||
- 2.0.0 | ||
- ruby-1.9.3-p551 | ||
before_script: | ||
- bin/dummy_rake db:create db:migrate |
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ gem 'rails-dummy' | |
gem 'sqlite3' | ||
gem 'pry' | ||
gem 'rspec-rails' | ||
gem 'exception_manager' | ||
gem 'binding_of_caller' |
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
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
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,11 +1,12 @@ | ||
class UsersController < ApplicationController | ||
def index | ||
render json: some_helper_method | ||
end | ||
|
||
def some_helper_method | ||
@users = User.all.to_a | ||
some_proc = proc { 1 + 1 } | ||
render json: @users | ||
|
||
binding.dump do |data| | ||
StoredBinding.create(data: data.force_encoding('utf-8')) | ||
end | ||
raise 'oh' | ||
[] | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
BindingDumper::MagicObjects.register(Rails) | ||
ExceptionManager.enable! |