stateful_link 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/stateful_link/action_any_of.rb +1 -1
- data/lib/stateful_link/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -21,7 +21,7 @@ module StatefulLink
|
|
21
21
|
#
|
22
22
|
def action_any_of?(*actions)
|
23
23
|
actions.any? do |sub_ca|
|
24
|
-
|
24
|
+
if sub_ca.present?
|
25
25
|
sub_controller, sub_action = extract_controller_and_action(sub_ca)
|
26
26
|
((self.controller_path == sub_controller) || (sub_controller.blank?)) && (self.action_name == sub_action || (sub_action == '' || sub_action == '*'))
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stateful_link
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Sokolov
|