Commit ee7d973ca71784e3b46374398f93ea37d72bacb6

Authored by Nick Recobra
1 parent 9538c387
Exists in master and in 1 other branch production

Fixed app renaming by not using app name as a key.

app/models/app.rb
... ... @@ -5,7 +5,8 @@ class App
5 5 field :name, :type => String
6 6 field :api_key
7 7 field :resolve_errs_on_deploy, :type => Boolean, :default => false
8   - key :name
  8 + # Some legacy apps may have sting as key instead of BSON::ObjectID
  9 + identity :type => String
9 10  
10 11 embeds_many :watchers
11 12 embeds_many :deploys
... ...
app/views/errs/show.html.haml
1 1 - content_for :page_title, @err.message
2 2 - content_for :title, @err.klass
3 3 - content_for :meta do
  4 + %strong App:
  5 + = @app.name
4 6 %strong Where:
5 7 = @err.where
6 8 %strong Environment:
... ...