Commit d2af60054fffd1ab6de44d90e6490f1cc4a9bc0c

Authored by Leandro Santos
1 parent f3b48953

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,7 +432,7 @@ class Profile < ActiveRecord::Base
432 end 432 end
433 433
434 # registar callback for creating boxes after the object is created. 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 # creates the initial set of boxes when the profile is created. Can be 437 # creates the initial set of boxes when the profile is created. Can be
438 # overriden for each subclass to create a custom set of boxes for its 438 # overriden for each subclass to create a custom set of boxes for its