params_keeper_rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/params_keeper/resolver.rb +2 -1
- data/lib/params_keeper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76b72564d1cc871d7577b052c4e9d082dd3c76861676a06d7847ad5aed8b4ae
|
4
|
+
data.tar.gz: 3e8f6bd4efff874dd152733c86b68b0e03ff29e8b1da34df3c3a27e9be3d14e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4836bfc19533e07b6f5341d6d467842ff03dd1364f25383ffb3beab21a4884682498fc3d99022f0995067c67f74bf27463bca4e73286b26c08a79799ff084de
|
7
|
+
data.tar.gz: 302e980d238c96315f2e8185e475b9235b79aaccfdd7456c6c416243efac446f19f72365ec896656d213e1797de60f062eca8fdd30ec4bb6a52a82c3e8abda3d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -39,7 +39,8 @@ class ParamsKeeper::Resolver
|
|
39
39
|
def link_to_target_controller?(options)
|
40
40
|
controller = options[:controller].to_s
|
41
41
|
if config[:to].present?
|
42
|
-
|
42
|
+
target = controller.present? ? [controller] : [@controller.controller_name, @controller.controller_path]
|
43
|
+
(Array(config[:to]).map(&:to_s) & target).present?
|
43
44
|
else
|
44
45
|
controller.blank? || controller.in?([@controller.controller_name, @controller.controller_path])
|
45
46
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: params_keeper_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|