Skip to content
Browse files

Normalize questions before validation

  • Loading branch information...
1 parent 9104ce5 commit 53ffd0f67b7229dd578dcd537a391420094a3459 @rwdaigle committed Jul 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/unit.rb
View
2 app/models/unit.rb
@@ -7,7 +7,7 @@ class Unit < ActiveRecord::Base
validates_presence_of :question, :subject
validates_uniqueness_of :question, :scope => :subject_id
- before_save :normalize_question, :set_processor_type
+ before_validation :normalize_question, :set_processor_type
belongs_to :subject
has_many :learnings, :dependent => :delete_all

0 comments on commit 53ffd0f

Please sign in to comment.
Something went wrong with that request. Please try again.