From 2cef2d411a20b89b71fb76876c33b331f94d0cc5 Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Thu, 3 Mar 2011 15:43:42 -0500 Subject: Methods that return nil should not be considered YAML --- activemodel/test/models/contact.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activemodel/test/models/contact.rb') diff --git a/activemodel/test/models/contact.rb b/activemodel/test/models/contact.rb index f4f3078473..7bfc542afb 100644 --- a/activemodel/test/models/contact.rb +++ b/activemodel/test/models/contact.rb @@ -16,6 +16,10 @@ class Contact options.each { |name, value| send("#{name}=", value) } end + def pseudonyms + nil + end + def persisted? id end -- cgit v1.2.3