rmtools 1.2.8 → 1.2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/rmtools/db/active_record.rb +6 -6
- metadata +3 -2
data/Rakefile
CHANGED
|
@@ -122,12 +122,12 @@ module ActiveRecord
|
|
|
122
122
|
}
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
def primary_key_for_sphinx
|
|
129
|
-
|
|
130
|
-
end
|
|
125
|
+
# fix for thinking_sphinx equation in #instances_from_class:
|
|
126
|
+
# ids.collect {|obj_id| instances.detect do |obj| obj.primary_key_for_sphinx == obj_id end}
|
|
127
|
+
# where obj_id is Array
|
|
128
|
+
#def primary_key_for_sphinx
|
|
129
|
+
# [read_attribute(self.class.primary_key_for_sphinx)]
|
|
130
|
+
#end
|
|
131
131
|
|
|
132
132
|
end
|
|
133
133
|
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rmtools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 109
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
9
|
- 8
|
|
10
|
-
|
|
10
|
+
- 1
|
|
11
|
+
version: 1.2.8.1
|
|
11
12
|
platform: ruby
|
|
12
13
|
authors:
|
|
13
14
|
- Sergey Baev
|