diff options
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/author.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb index 6b34c7522c..61ba3c1551 100644 --- a/activerecord/test/fixtures/author.rb +++ b/activerecord/test/fixtures/author.rb @@ -67,6 +67,10 @@ class Author < ActiveRecord::Base @post_log = [] end + def label + "#{id}-#{name}" + end + private def log_before_adding(object) @post_log << "before_adding#{object.id}" |