Permalink
Browse files

Fix build in Rails 2

  • Loading branch information...
1 parent bb0e1b7 commit 4b6eec08486e77cdc151f8c1b8519b97ecfa0901 @cavalle cavalle committed Apr 17, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 Gemfile.r2.lock
  2. +3 −3 lib/almodovar/resource_presenter/collection.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- almodovar (0.5.6)
+ almodovar (0.6.0)
activesupport
builder
i18n
@@ -21,7 +21,7 @@ GEM
lorax (0.2.0)
nokogiri (>= 1.4.0)
nokogiri (1.5.0)
- patron (0.4.16)
+ patron (0.4.18)
rake (0.9.2)
rdoc (3.9.4)
rspec (2.6.0)
@@ -35,7 +35,7 @@ GEM
webmock (1.7.6)
addressable (~> 2.2, > 2.2.5)
crack (>= 0.1.7)
- yajl-ruby (1.0.0)
+ yajl-ruby (1.1.0)
PLATFORMS
ruby
@@ -23,12 +23,12 @@ def to_xml(options = {})
xml = options[:builder]
- xml.instruct! unless options.delete(:skip_instruct)
- xml.tag! ActiveSupport::XmlMini.rename_key(resource_type.pluralize, options), :type => 'array' do
+ xml.instruct! unless options[:skip_instruct]
+ xml.tag! resource_type.pluralize.dasherize, :type => 'array' do
xml.tag!('total-entries', @total) if @total
xml.link :rel => 'next', :href => @next if @next
xml.link :rel => 'prev', :href => @prev if @prev
- @resources.each { |value| ActiveSupport::XmlMini.to_tag(resource_type.singularize, value, options) }
+ @resources.each { |value| value.to_xml(options.merge(:root => resource_type.singularize, :skip_instruct => true)) }
end
end

0 comments on commit 4b6eec0

Please sign in to comment.