Skip to content

Commit

Permalink
* remove holder-validation as this causes problems with acts_as_paran…
Browse files Browse the repository at this point in the history
…oid.
  • Loading branch information
Thies C. Arntzen committed Mar 30, 2010
1 parent af4fbdb commit feaae83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/acts_as_account/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ class Account < ActiveRecord::Base
belongs_to :holder, :polymorphic => true
has_many :postings
has_many :journals, :through => :postings

validates_presence_of :holder

# TODO: discuss with norman:
# validates_presence_of will force an ActiveRecord::find on the object
# but we have to create accounts for deleted holder!
#
# validates_presence_of :holder

class << self
def for(name)
Expand Down

0 comments on commit feaae83

Please sign in to comment.