para-acl 0.3.2 → 0.3.3
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: 72514f7573fc42b2d0ae72ba9930010a2c1b9311
|
4
|
+
data.tar.gz: 4802f29313ece1e7934536d66e534a6d6e7e3411
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a272b3a5fc8e4e94dcd96c41cd73b07a1dbacdadb4a2ae284be439c500454029d3d15770b2d5f567430464c4e688ef58c16f65394f34658dbdedcf3171f533aa
|
7
|
+
data.tar.gz: 22685408720f69c7fab1ee1969b5fe888badcfdc5186f9e161a8f622b0cb8e32afd21057667d2e64ddb21e656c23cc00360785b3f5b3a3c6debc2ac65e6bedac
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= para_form_for(resource, url: @component.relation_path(:role, id: resource.id)) do |form|
|
1
|
+
= para_form_for(resource, url: @component.relation_path((resource.new_record? ? :roles : :role), id: resource.id)) do |form|
|
2
2
|
= form.tabs do |tabs|
|
3
3
|
= tabs.tab :role do
|
4
4
|
= form.input :name
|
@@ -10,10 +10,10 @@ module Para
|
|
10
10
|
|
11
11
|
def add_role_mixin_to_admin
|
12
12
|
admin_user_class_file_path = File.join(
|
13
|
-
'app', 'models', "#{
|
13
|
+
'app', 'models', "#{ Para.config.acl.admin_user_class.underscore }.rb"
|
14
14
|
)
|
15
15
|
|
16
|
-
inject_into_file admin_user_class_file_path, after:
|
16
|
+
inject_into_file admin_user_class_file_path, after: /< (ActiveRecord::Base|ApplicationRecord)/ do
|
17
17
|
"\n has_admin_role"
|
18
18
|
end
|
19
19
|
end
|
data/lib/para/acl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: para-acl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentin Ballestrino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: para
|