effective_regions 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48fb70e0d7cdb9c1ce13f42544f4160da90fd5a7
|
4
|
+
data.tar.gz: ed1a7b9e6b1a057e7351d7d2ed9dfe72e1b1f7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c55441fefc5c7bdd8b7742b852072cb2b52bd9a934171e9de6352879f17705509314bca4ef361adaa3802c86fc08ab32a6794b24b5eb6b9d668a96941694021
|
7
|
+
data.tar.gz: 3981f28747a9bb1cedeeba81a19a524b06dc1580efd853d694a92cc58fbbbbc1d69322d66e0ff33efd868285a38d64790ea77f7fa3d0f00da54b93f5beee91a7
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module EffectiveRegionsControllerHelper
|
2
|
+
def effectively_editing?
|
3
|
+
@effectively_editing ||= (
|
4
|
+
request.fullpath.include?('edit=true') &&
|
5
|
+
(EffectiveRegions.authorized?(controller, :edit, Effective::Region.new()) rescue false)
|
6
|
+
)
|
7
|
+
end
|
8
|
+
alias_method :effectively_editting?, :effectively_editing?
|
9
|
+
end
|
@@ -37,14 +37,6 @@ module EffectiveRegionsHelper
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def effectively_editing?
|
41
|
-
@effectively_editing ||= (
|
42
|
-
request.fullpath.include?('edit=true') &&
|
43
|
-
(EffectiveRegions.authorized?(controller, :edit, Effective::Region.new()) rescue false)
|
44
|
-
)
|
45
|
-
end
|
46
|
-
alias_method :effectively_editting?, :effectively_editing?
|
47
|
-
|
48
40
|
private
|
49
41
|
|
50
42
|
def ckeditor_region(args, options = {}, &block)
|
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.9
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- app/assets/images/effective/templates/image_and_title.png
|
81
81
|
- app/assets/javascripts/effective/snippets/current_user_info.js.coffee
|
82
82
|
- app/controllers/effective/regions_controller.rb
|
83
|
+
- app/helpers/effective_regions_controller_helper.rb
|
83
84
|
- app/helpers/effective_regions_helper.rb
|
84
85
|
- app/models/concerns/acts_as_regionable.rb
|
85
86
|
- app/models/effective/access_denied.rb
|