CanCanCanSee 0.1.8 → 0.1.9
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 +1 -1
- 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: 35a48d90c2a5099af44bef0b0675393b4b0761ee
|
4
|
+
data.tar.gz: 900c5562c8c51b9cd9f2d2139cac6fa40fc3c896
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a09e4af3a2bc95e90f393c06350a0a9584a961828f5224f979af80151b7a6020810034d2ca924a0e6d0af81506375f45dceaaea6b058ac6d1f3ebe18322993
|
7
|
+
data.tar.gz: e516ac8bc2cbc9ccd2215c25f0ca92c6e207964763a715252eb1a0e2cc2223b53919e68b2a8352695d8c4f1990e4131906d039dbc7e7f0ebbcc850c108430508
|
data/lib/CanCanCanSee/version.rb
CHANGED
data/lib/CanCanCanSee.rb
CHANGED
@@ -48,7 +48,7 @@ module CanCanCanSee
|
|
48
48
|
#capture in between text
|
49
49
|
chunk_start = /when/ =~ @current_file
|
50
50
|
#=> 119
|
51
|
-
chunk_end = /when/ =~ @current_file[(chunk_start + 1)..-1]
|
51
|
+
chunk_end = ((/when/ =~ @current_file[(chunk_start + 1)..-1]) + chunk_start)
|
52
52
|
#=> 2554
|
53
53
|
role_text = @current_file[chunk_start..chunk_end]
|
54
54
|
|