ooor 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/models/open_object_resource.rb +2 -1
- metadata +2 -2
@@ -231,7 +231,8 @@ module Ooor
|
|
231
231
|
|
232
232
|
#actually finds many resources specified with scope = ids_array
|
233
233
|
def find_single(scope, options)
|
234
|
-
|
234
|
+
all_fields = @fields.merge(@many2one_associations).merge(@one2many_associations).merge(@many2many_associations).merge(@polymorphic_m2o_associations)
|
235
|
+
fields = options[:fields] || options[:only] || all_fields.keys.select {|k| all_fields[k]["type"] != "binary" && (options[:include_functions] || !all_fields[k]["function"])}
|
235
236
|
context = options[:context] || {}
|
236
237
|
# prefix_options, query_options = split_options(options[:params])
|
237
238
|
is_collection = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ooor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activeresource
|