From cb3e1bb046992e8c19a3066328915d3870f15104 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Wed, 6 Jun 2012 19:38:32 +0300 Subject: [PATCH] remove commented code that was related to mongoid bug --- app/models/app.rb | 8 -------- 1 file changed, 0 insertions(+), 8 deletions(-) diff --git a/app/models/app.rb b/app/models/app.rb index d6831f3..b87f7d8 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -14,14 +14,6 @@ class App # Some legacy apps may have string as key instead of BSON::ObjectID identity :type => String - # Bug fix - # # There seems to be a Mongoid bug making it impossible to use String identity with references_many feature: - # # https://github.com/mongoid/mongoid/issues/703 - # # Using 32 character string as a workaround. - # before_create do |r| - # r.id = ActiveSupport::SecureRandom.hex - # end - embeds_many :watchers embeds_many :deploys embeds_one :issue_tracker -- libgit2 0.21.2