Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for nested wrappers in the :in clause #35

Merged
merged 3 commits into from
Nov 25, 2011

Conversation

jpshackelford
Copy link
Contributor

While the following worked for reads, it would create xml elements which contain a '/' on writes which crashes nokogiri jruby1.5.0 and is produced but invalid in other versions/platforms. This fix allows ROXML to properly reconstruct xml with a nested wrapper.

class LibraryWithFines
  include ROXML
  xml_name 'library'
  xml_accessor :name
  xml_accessor :fines,
               :as   => { :key => 'name', :value => 'desc' },
               :from => 'fine',
               :in   => 'policy/fines'
end

Empact added a commit that referenced this pull request Nov 25, 2011
Add support for nested wrappers in the :in clause
@Empact Empact merged commit a54b4c9 into Empact:master Nov 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants