Commit d2af60054fffd1ab6de44d90e6490f1cc4a9bc0c
1 parent
f3b48953
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
HOTFIX: undo before_create callback
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/profile.rb
| ... | ... | @@ -432,7 +432,7 @@ class Profile < ActiveRecord::Base |
| 432 | 432 | end |
| 433 | 433 | |
| 434 | 434 | # registar callback for creating boxes after the object is created. |
| 435 | - before_create :create_default_set_of_boxes | |
| 435 | + after_create :create_default_set_of_boxes | |
| 436 | 436 | |
| 437 | 437 | # creates the initial set of boxes when the profile is created. Can be |
| 438 | 438 | # overriden for each subclass to create a custom set of boxes for its | ... | ... |