rpc-mapper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -37,13 +37,15 @@ module RPCMapper::FinderMethods
|
|
37
37
|
relation = clone
|
38
38
|
return relation unless options
|
39
39
|
|
40
|
-
[:joins, :limit, :offset, :order, :select, :group, :having, :from, :fresh].each do |finder|
|
40
|
+
[:joins, :limit, :offset, :order, :select, :group, :having, :from, :fresh, :includes].each do |finder|
|
41
41
|
relation = relation.send(finder, options[finder]) if options[finder]
|
42
42
|
end
|
43
43
|
|
44
44
|
relation = relation.where(options[:conditions]) if options.has_key?(:conditions)
|
45
45
|
relation = relation.where(options[:where]) if options.has_key?(:where)
|
46
46
|
|
47
|
+
relation = relation.includes(options[:include]) if options.has_key?(:include)
|
48
|
+
|
47
49
|
relation = relation.search(options[:search]) if options.has_key?(:search)
|
48
50
|
|
49
51
|
relation = relation.sql(options[:sql]) if options.has_key?(:sql)
|
data/lib/rpc_mapper/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpc-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Travis Petticrew
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-03 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|