simple_ams 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simple_ams/adapters/ams.rb +9 -1
- data/lib/simple_ams/options.rb +2 -1
- data/lib/simple_ams/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: 21432f80bcadd512b56d7d24023014944e746d2b
|
4
|
+
data.tar.gz: 0d8dc9ac8b88a4b25483168fc2c88023831ec863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8efe4cea91158fb2cc4e2ed7f45b464cd78e61ea45a97dbf1e42f066c493dc07d468fbe3d2317ea40838bd71e8766c2556be2fd222ec3fdb0de8a090bac155b
|
7
|
+
data.tar.gz: c390be3c1c6b9a91b95916f761e7c4ccdd98ee9653ac9df969c4e42e915f78dcfa81311ddb0eb0f83e427054f5be7e05d53750c018255b8d86d72d763d5cfc9c
|
@@ -79,7 +79,8 @@ class SimpleAMS::Adapters::AMS
|
|
79
79
|
if options[:root]
|
80
80
|
{
|
81
81
|
folder.name => documents,
|
82
|
-
meta: metas
|
82
|
+
meta: metas,
|
83
|
+
links: links
|
83
84
|
}
|
84
85
|
else
|
85
86
|
documents
|
@@ -98,5 +99,12 @@ class SimpleAMS::Adapters::AMS
|
|
98
99
|
hash
|
99
100
|
}
|
100
101
|
end
|
102
|
+
|
103
|
+
def links
|
104
|
+
@links ||= folder.links.inject({}){ |hash, link|
|
105
|
+
hash[link.name] = link.value
|
106
|
+
hash
|
107
|
+
}
|
108
|
+
end
|
101
109
|
end
|
102
110
|
end
|
data/lib/simple_ams/options.rb
CHANGED
@@ -149,7 +149,8 @@ module SimpleAMS
|
|
149
149
|
#TODO: Do we need that merge ?
|
150
150
|
_injected_options = @injected_options.fetch(:collection, {}).merge({
|
151
151
|
serializer: collection_serializer_class,
|
152
|
-
adapter: adapter(_serializer: collection_serializer_class).raw
|
152
|
+
adapter: adapter(_serializer: collection_serializer_class).raw,
|
153
|
+
expose: expose
|
153
154
|
})
|
154
155
|
_allowed_options = @allowed_options.fetch(:collection).options
|
155
156
|
|
data/lib/simple_ams/version.rb
CHANGED