diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-02 21:00:09 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-02 21:00:09 +0000 |
commit | d0696d764189996422c3dea649c388b7685a10e5 (patch) | |
tree | e0f6245dc606ecbff957317a4279a4dac9fadaba /activerecord/lib | |
parent | ad63005cdd4260b225f097ebde4fa80a36f84729 (diff) | |
download | rails-d0696d764189996422c3dea649c388b7685a10e5.tar.gz rails-d0696d764189996422c3dea649c388b7685a10e5.tar.bz2 rails-d0696d764189996422c3dea649c388b7685a10e5.zip |
to_xml: the :methods option works on arrays of records. Closes #5845.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/xml_serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/xml_serialization.rb b/activerecord/lib/active_record/xml_serialization.rb index 273f3003fb..8d1dda5875 100644 --- a/activerecord/lib/active_record/xml_serialization.rb +++ b/activerecord/lib/active_record/xml_serialization.rb @@ -160,7 +160,7 @@ module ActiveRecord #:nodoc: end def serializable_method_attributes - Array(options.delete(:methods)).collect { |name| MethodAttribute.new(name.to_s, @record) } + Array(options[:methods]).collect { |name| MethodAttribute.new(name.to_s, @record) } end |