effective_regions 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_regions_helper.rb +4 -1
- data/lib/effective_regions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba332da231fdbe20fe72361c6ddbaaec95f11d2b
|
4
|
+
data.tar.gz: 558a7f5bc4f7915e37f8cf12428634613ea1d89c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27f521ef64906ecabd1f10af9cba946d9c934396eecc9a5c3e5947c425a85a3ce3db0862ce196cff3b97fdcc6448b2b174d1c5802cefb4dd89a9e82e65e5755
|
7
|
+
data.tar.gz: 401510a46e9548a74adc2124ddb8d247418565a2c4f605cfde3354edc1fd59ffb0248c25730d19d127d2e3dbdfcbbf4538474ff377aec39c25281f575e0e31f1
|
@@ -28,7 +28,10 @@ module EffectiveRegionsHelper
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def effectively_editting?
|
31
|
-
@effectively_editting ||=
|
31
|
+
@effectively_editting ||= (
|
32
|
+
request.fullpath.include?('edit=true') &&
|
33
|
+
(EffectiveRegions.authorized?(controller, :edit, Effective::Region.new()) rescue false)
|
34
|
+
)
|
32
35
|
end
|
33
36
|
|
34
37
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_regions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|