Commit ee7d973ca71784e3b46374398f93ea37d72bacb6
1 parent
9538c387
Exists in
master
and in
1 other branch
Fixed app renaming by not using app name as a key.
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/models/app.rb
@@ -5,7 +5,8 @@ class App | @@ -5,7 +5,8 @@ class App | ||
5 | field :name, :type => String | 5 | field :name, :type => String |
6 | field :api_key | 6 | field :api_key |
7 | field :resolve_errs_on_deploy, :type => Boolean, :default => false | 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 | embeds_many :watchers | 11 | embeds_many :watchers |
11 | embeds_many :deploys | 12 | embeds_many :deploys |
app/views/errs/show.html.haml
1 | - content_for :page_title, @err.message | 1 | - content_for :page_title, @err.message |
2 | - content_for :title, @err.klass | 2 | - content_for :title, @err.klass |
3 | - content_for :meta do | 3 | - content_for :meta do |
4 | + %strong App: | ||
5 | + = @app.name | ||
4 | %strong Where: | 6 | %strong Where: |
5 | = @err.where | 7 | = @err.where |
6 | %strong Environment: | 8 | %strong Environment: |