Commit ef52cfbb2be719c4d6ad69e17e05e33a4240129d

Authored by Nick Recobra
2 parents bcc4fa2d 5a3dc46e
Exists in master and in 1 other branch production

Merge branch 'email_backtrace' of https://github.com/harvesthq/errbit into pull-request-38

@@ -17,6 +17,7 @@ platform :ruby do @@ -17,6 +17,7 @@ platform :ruby do
17 end 17 end
18 18
19 group :development, :test do 19 group :development, :test do
  20 + gem 'awesome_print'
20 gem 'rspec-rails', '~> 2.5' 21 gem 'rspec-rails', '~> 2.5'
21 gem 'webmock', :require => false 22 gem 'webmock', :require => false
22 end 23 end
@@ -37,6 +37,7 @@ GEM @@ -37,6 +37,7 @@ GEM
37 activesupport (3.0.5) 37 activesupport (3.0.5)
38 addressable (2.2.5) 38 addressable (2.2.5)
39 arel (2.0.9) 39 arel (2.0.9)
  40 + awesome_print (0.4.0)
40 bcrypt-ruby (2.1.4) 41 bcrypt-ruby (2.1.4)
41 bson (1.3.0) 42 bson (1.3.0)
42 bson_ext (1.3.0) 43 bson_ext (1.3.0)
@@ -144,6 +145,7 @@ PLATFORMS @@ -144,6 +145,7 @@ PLATFORMS
144 ruby 145 ruby
145 146
146 DEPENDENCIES 147 DEPENDENCIES
  148 + awesome_print
147 bson_ext (~> 1.2) 149 bson_ext (~> 1.2)
148 database_cleaner (~> 0.6.0) 150 database_cleaner (~> 0.6.0)
149 devise (~> 1.1.8) 151 devise (~> 1.1.8)
app/views/mailer/err_notification.text.erb
@@ -4,4 +4,8 @@ This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. You sh @@ -4,4 +4,8 @@ This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. You sh
4 4
5 <%= app_err_url(@app, @notice.err) %> 5 <%= app_err_url(@app, @notice.err) %>
6 6
  7 +Backtrace follows:
  8 +
  9 +<%= @notice.backtrace.collect { |l| l ? " #{l['file']}:#{l['number']}" : nil }.compact.join("\n") %>
  10 +
7 <%= render :partial => 'signature' %> 11 <%= render :partial => 'signature' %>