From 272c504f919d187603915059572e37d3a78329cc Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 22 Jul 2009 21:06:34 -0500 Subject: Dasherize XML root by default to avoid invalid tags "..." [#2875 state:resolved] --- 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 7d69c91996..f9fb0af027 100644 --- a/activemodel/test/models/contact.rb +++ b/activemodel/test/models/contact.rb @@ -1,3 +1,7 @@ class Contact attr_accessor :name, :age, :created_at, :awesome, :preferences + + def initialize(options = {}) + options.each { |name, value| send("#{name}=", value) } + end end -- cgit v1.2.3