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

Gemfile
... ... @@ -17,6 +17,7 @@ platform :ruby do
17 17 end
18 18  
19 19 group :development, :test do
  20 + gem 'awesome_print'
20 21 gem 'rspec-rails', '~> 2.5'
21 22 gem 'webmock', :require => false
22 23 end
... ...
Gemfile.lock
... ... @@ -37,6 +37,7 @@ GEM
37 37 activesupport (3.0.5)
38 38 addressable (2.2.5)
39 39 arel (2.0.9)
  40 + awesome_print (0.4.0)
40 41 bcrypt-ruby (2.1.4)
41 42 bson (1.3.0)
42 43 bson_ext (1.3.0)
... ... @@ -144,6 +145,7 @@ PLATFORMS
144 145 ruby
145 146  
146 147 DEPENDENCIES
  148 + awesome_print
147 149 bson_ext (~> 1.2)
148 150 database_cleaner (~> 0.6.0)
149 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  
5 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 11 <%= render :partial => 'signature' %>
... ...