diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-04-29 17:39:05 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-30 13:19:30 +0200 |
commit | 883f27aa9a6fae5194400bb8f00e343dcb610270 (patch) | |
tree | 3448209008959fdf955ccdbfa120599b7556c326 /activemodel/test/models | |
parent | 34908e4a666971216a92b58d8c62030b9a96b7ba (diff) | |
download | rails-883f27aa9a6fae5194400bb8f00e343dcb610270.tar.gz rails-883f27aa9a6fae5194400bb8f00e343dcb610270.tar.bz2 rails-883f27aa9a6fae5194400bb8f00e343dcb610270.zip |
test cases for record.to_xml [#458 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activemodel/test/models')
-rw-r--r-- | activemodel/test/models/contact.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activemodel/test/models/contact.rb b/activemodel/test/models/contact.rb index a9009fbdef..605e435f39 100644 --- a/activemodel/test/models/contact.rb +++ b/activemodel/test/models/contact.rb @@ -3,6 +3,14 @@ class Contact attr_accessor :id, :name, :age, :created_at, :awesome, :preferences + def social + %w(twitter github) + end + + def network + {:git => :github} + end + def initialize(options = {}) options.each { |name, value| send("#{name}=", value) } end |