CanCanCanSee 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/CanCanCanSee/version.rb +1 -1
- data/lib/CanCanCanSee.rb +2 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86d21722071025a2fc592a06223de22c8deea06d
|
4
|
+
data.tar.gz: c26b027ed491f44a851aef4fb4056646038b4584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76eed1e2c3cd149ba0e410b56c9bf2f91b78a159508876acc1d18470117ee859721008fb2a535076fe7948ff119c8ec1990e0c66a7b2952ab0addf418cc46991
|
7
|
+
data.tar.gz: be1b40685f55a70eb03d13568811a6947329e658348503e90e7aac694ba4be01b8651f096bd59d577749a390c839fdb1c527b2adc111218b09050a0b766fb93f
|
data/lib/CanCanCanSee/version.rb
CHANGED
data/lib/CanCanCanSee.rb
CHANGED
@@ -128,12 +128,8 @@ module CanCanCanSee
|
|
128
128
|
|
129
129
|
can_abilities.each do |can_ability|
|
130
130
|
can_ability = can_ability[0]
|
131
|
-
if can_ability.include?("do")
|
132
|
-
|
133
|
-
can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
|
134
|
-
rescue
|
135
|
-
binding.pry
|
136
|
-
end
|
131
|
+
if can_ability.include?(" do ")
|
132
|
+
can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
|
137
133
|
end
|
138
134
|
array_of_can << can_ability.gsub(/[^0-9a-z ]/i, '')
|
139
135
|
end
|