vendor/rails/activerecord/test/models/author.rb in radiant-0.9.1 vs vendor/rails/activerecord/test/models/author.rb in radiant-1.0.0.rc1
- old
+ new
@@ -104,9 +104,11 @@
def label
"#{id}-#{name}"
end
+ validates_presence_of :name
+
private
def log_before_adding(object)
@post_log << "before_adding#{object.id || '<new>'}"
end