lookup_by 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/lookup_by/hooks/formtastic.rb +1 -1
- data/lib/lookup_by/hooks/simple_form.rb +1 -1
- data/lib/lookup_by/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db2d09ac4154fec2fa6e8936e8607569637ddf80
|
4
|
+
data.tar.gz: b52e31b9f71e3a42c9efd2e4a41060aa29f21736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b902dc71e0be17d094a2f26cd769aeb4399726f851cf612ac821ca81ec37bc7c62c0e37e6c5f653ad7748cbf5bde86952be3b7eac6c3798c3d2a63be0ad3eaf5
|
7
|
+
data.tar.gz: 9080b08599655ee9cc4cfdc2421c8d305f1757f1af5a0dbbcae529f04468060d9fd1b8020c4290840c1c6998330cfc0154a8c4540beece06ec9cca36bc48a5d3
|
data/.travis.yml
CHANGED
@@ -15,7 +15,7 @@ module LookupBy
|
|
15
15
|
if klass.respond_to?(:lookups) && klass.lookups.include?(method.to_sym)
|
16
16
|
target = method.to_s.classify.constantize
|
17
17
|
|
18
|
-
options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.
|
18
|
+
options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.has_cache?
|
19
19
|
end
|
20
20
|
|
21
21
|
input_without_lookup(method, options)
|
@@ -15,7 +15,7 @@ module LookupBy
|
|
15
15
|
if klass.respond_to?(:lookups) && klass.lookups.include?(method.to_sym)
|
16
16
|
target = method.to_s.classify.constantize
|
17
17
|
|
18
|
-
options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.
|
18
|
+
options[:collection] ||= target.pluck(target.lookup.field) if target.lookup.has_cache?
|
19
19
|
end
|
20
20
|
|
21
21
|
input_without_lookup(method, options, &block)
|
data/lib/lookup_by/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookup_by
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Peterson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.4.
|
156
|
+
rubygems_version: 2.4.8
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: A thread-safe lookup table cache for ActiveRecord
|