app/models/fine_print/signature.rb in fine_print-2.3.0 vs app/models/fine_print/signature.rb in fine_print-2.3.1

- old
+ new

@@ -3,11 +3,11 @@ belongs_to :contract, :inverse_of => :signatures belongs_to :user, :polymorphic => true validate :contract_published, :on => :create - validates :contract, :presence => true, - :uniqueness => {:scope => [:user_type, :user_id]} + validates :contract, :presence => true + validates :contract_id, :uniqueness => {:scope => [:user_type, :user_id]} validates :user, :presence => true default_scope { order(:contract_id, :user_type, :user_id) } protected