activerecord_reindex 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord_reindex/association.rb +2 -2
- data/lib/activerecord_reindex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951b22d357cf54f6642f58e52adfb1fdceb0e643
|
4
|
+
data.tar.gz: 8da9eaf7d37501ad23e6f2b368003babccb15f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bf42319e183b05531d763dc15a20150abb1c480ef6a0e8bc3514276f0ffad9898d9fbbcda9f6d509224c3939d69e32237f9caeed16e5ea304aff7d9e2e69e5d
|
7
|
+
data.tar.gz: 650f1e5e6dceeb24ee127c1c6984ac033ee5a7d5e41df86e9e4c26f50ea00483f81c5a4ca8680d508a4b6b896cfbfdca166077ec2d2ad4368f9d43795bb50e90
|
@@ -17,7 +17,7 @@ module ActiveRecord
|
|
17
17
|
|
18
18
|
class << self
|
19
19
|
|
20
|
-
alias
|
20
|
+
alias original_valid_options_ar_reindex valid_options
|
21
21
|
|
22
22
|
# This method monkey patches ActiveRecord valid_options to add one more valid option :reindex
|
23
23
|
# Examples:
|
@@ -26,7 +26,7 @@ module ActiveRecord
|
|
26
26
|
# has_many :tags, reindex: async
|
27
27
|
# has_many :tags, through: :taggings, reindex: true
|
28
28
|
def valid_options(*args)
|
29
|
-
|
29
|
+
original_valid_options_ar_reindex(*args) + [:reindex]
|
30
30
|
end
|
31
31
|
|
32
32
|
alias original_define_callbacks define_callbacks
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_reindex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|