Skip to content

Commit

Permalink
Destroy identity when account is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Jul 31, 2012
1 parent 57863e4 commit 688926f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mixins/easy_auth/models/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def identity_username_attribute
self.send(self.class.identity_username_attribute)
end

has_one :identity, :as => :account
has_one :identity, :as => :account, :dependent => :destroy
before_create :setup_identity, :unless => :skip_identity_validations
before_update :update_identity, :unless => :skip_identity_validations

Expand Down

0 comments on commit 688926f

Please sign in to comment.