lib/pg_serializable/visitors/validation.rb in pg_serializable-1.2.0 vs lib/pg_serializable/visitors/validation.rb in pg_serializable-1.2.1
- old
+ new
@@ -39,10 +39,10 @@
name = subject.name
if klass.reflect_on_association(name).nil?
raise PgSerializable::AssociationError.new("association `#{name.to_s}` doesn't exist for class #{klass}")
end
if subject.target.trait_manager.get_trait(subject.trait).nil?
- raise PgSerializable::AssociationError.new("trait `#{subect.trait}` doesn't exist for class #{subject.target}")
+ raise PgSerializable::AssociationError.new("trait `#{subject.trait}` doesn't exist for class #{subject.target}")
end
end
private