Commit cb3e1bb046992e8c19a3066328915d3870f15104
1 parent
5c6664ad
Exists in
master
and in
1 other branch
remove commented code that was related to mongoid bug
Showing
1 changed file
with
0 additions
and
8 deletions
Show diff stats
app/models/app.rb
| @@ -14,14 +14,6 @@ class App | @@ -14,14 +14,6 @@ class App | ||
| 14 | # Some legacy apps may have string as key instead of BSON::ObjectID | 14 | # Some legacy apps may have string as key instead of BSON::ObjectID |
| 15 | identity :type => String | 15 | identity :type => String |
| 16 | 16 | ||
| 17 | - # Bug fix | ||
| 18 | - # # There seems to be a Mongoid bug making it impossible to use String identity with references_many feature: | ||
| 19 | - # # https://github.com/mongoid/mongoid/issues/703 | ||
| 20 | - # # Using 32 character string as a workaround. | ||
| 21 | - # before_create do |r| | ||
| 22 | - # r.id = ActiveSupport::SecureRandom.hex | ||
| 23 | - # end | ||
| 24 | - | ||
| 25 | embeds_many :watchers | 17 | embeds_many :watchers |
| 26 | embeds_many :deploys | 18 | embeds_many :deploys |
| 27 | embeds_one :issue_tracker | 19 | embeds_one :issue_tracker |