elastic_record 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/elastic_record/relation.rb +9 -0
  2. metadata +2 -2
@@ -26,6 +26,15 @@ module ElasticRecord
26
26
  to_hits.facets
27
27
  end
28
28
 
29
+ def reset
30
+ @hits = @records = nil
31
+ end
32
+
33
+ def initialize_copy(other)
34
+ @values = @values.dup
35
+ reset
36
+ end
37
+
29
38
  def to_a
30
39
  @records ||= klass.find(to_ids)
31
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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: 2012-08-03 00:00:00.000000000 Z
12
+ date: 2012-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arelastic