Skip to content

Commit

Permalink
calling save in an after_create breaks things
Browse files Browse the repository at this point in the history
  • Loading branch information
radditude committed Oct 9, 2020
1 parent 90ea4db commit ff7224a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/dummy/app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ class Person < ActiveRecord::Base
def encryption_context
"user_#{id}"
end

after_create :save!
end

0 comments on commit ff7224a

Please sign in to comment.