Skip to content

Commit 1bfc830

Browse files
committed
adding bugsnag
1 parent bbc6998 commit 1bfc830

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ end
4747

4848
group :production do
4949
gem 'rails_12factor'
50+
gem "bugsnag"
5051
end

Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ GEM
5353
debug_inspector (>= 0.0.1)
5454
blankslate (3.1.3)
5555
browser (1.1.0)
56+
bugsnag (3.0.0)
57+
json (~> 1.7, >= 1.7.7)
5658
builder (3.2.2)
5759
capybara (2.6.0)
5860
addressable
@@ -260,6 +262,7 @@ PLATFORMS
260262
DEPENDENCIES
261263
bcrypt (~> 3.1.7)
262264
browser
265+
bugsnag
263266
capybara
264267
carrierwave-aws
265268
carrierwave_backgrounder

app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def show
77
elsif params[:delete_account]
88
@user = current_user
99
else
10-
@user = User.find_by_username(params[:username])
10+
@user = User.includes(:badges, :protips).find_by_username(params[:username])
1111
end
1212
end
1313

0 commit comments

Comments
 (0)