almodovar 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almodovar/resource_presenter/collection.rb +2 -2
- data/lib/almodovar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b289e05bdd883582037d1abffa2db9394e10a068
|
4
|
+
data.tar.gz: 6f3301dee15a2044aa615441a2462a87708d49ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc30ff144bdbe5ea05348c5e6616eea3e6b0be218c67bf7f3c37364cfbe0a8350f4c9041c62a53af84b6e50a26069d5e56782cc34e86077b445e3ec791e5f93b
|
7
|
+
data.tar.gz: 0267c8b5a0b7aef7010a2c18988a79ce4aa03741184602a7d7e105bb91c7066676be2236a0bba10691728dbe7d3d64ecc5c3ad7f08ea31fa1c11de0076993590
|
@@ -28,8 +28,8 @@ module Almodovar
|
|
28
28
|
xml.instruct! unless options[:skip_instruct]
|
29
29
|
xml.tag! resource_type.pluralize.dasherize, :type => 'array' do
|
30
30
|
xml.tag!('total-entries', @total) if @total
|
31
|
-
next_link.to_xml(:builder => xml) if next_link
|
32
31
|
prev_link.to_xml(:builder => xml) if prev_link
|
32
|
+
next_link.to_xml(:builder => xml) if next_link
|
33
33
|
@resources.each { |value| value.to_xml(options.merge(:root => resource_type.singularize, :skip_instruct => true)) }
|
34
34
|
end
|
35
35
|
end
|
@@ -37,8 +37,8 @@ module Almodovar
|
|
37
37
|
def as_json(options = {})
|
38
38
|
message = ActiveSupport::OrderedHash.new.tap do |message|
|
39
39
|
message[:total_entries] = @total if @total
|
40
|
-
message.merge! next_link.as_json if next_link
|
41
40
|
message.merge! prev_link.as_json if prev_link
|
41
|
+
message.merge! next_link.as_json if next_link
|
42
42
|
message[:entries] = @resources.map { |resource| resource.as_json(options) }
|
43
43
|
end
|
44
44
|
end
|
data/lib/almodovar/version.rb
CHANGED