rails_admin_user_abilities 0.1.0.4 → 0.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/README.md +4 -2
- data/app/views/rails_admin/main/model_accesses.html.slim +0 -1
- data/app/views/rails_admin/main/user_abilities.html.slim +0 -1
- data/lib/rails_admin_user_abilities/version.rb +1 -1
- data/rails_admin_user_abilities.gemspec +1 -3
- data/release.sh +1 -1
- metadata +5 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0724c18ed35cc088eb057bf2f693eaa6315c10a5
|
4
|
+
data.tar.gz: 151ab4476f82835869c2d52a3c1b23298ac4ec4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a96038b5f84e54aaefde96bd78012c2c1336754c4ad1e7f53c28eb65f1ce35228d081c046cb14e7f4740fa7a01047c6729320e0449d61d93e281a9561bceb838
|
7
|
+
data.tar.gz: 859e7f4b874a3dd40b446272230c16d34a7337005f4bdf29f1770ab94710a138bbcf6f59d7076cc783d52606b1f52a5ab5f04e8128144a4cef1ce390d8f6ec80
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
rails_admin_user_abilities_rails5
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# RailsAdminUserAbilities
|
2
2
|
|
3
|
+
### Rails 5 Support
|
4
|
+
|
3
5
|
That will add fields for access to models, objects and actions in rails_admin panel for specific users.
|
4
6
|
|
5
7
|
## Installation
|
@@ -7,7 +9,7 @@ That will add fields for access to models, objects and actions in rails_admin pa
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
11
|
```ruby
|
10
|
-
gem 'rails_admin_user_abilities'
|
12
|
+
gem 'rails_admin_user_abilities', '~> 0.2.0'
|
11
13
|
```
|
12
14
|
|
13
15
|
And then execute:
|
@@ -16,7 +18,7 @@ And then execute:
|
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
19
|
-
$ gem install rails_admin_user_abilities
|
21
|
+
$ gem install rails_admin_user_abilities -v 0.2.0
|
20
22
|
|
21
23
|
## Usage
|
22
24
|
|
@@ -48,7 +48,6 @@
|
|
48
48
|
button(data-toggle="collapse" data-target="#model_accesses_hash_#{u.id}")= "Чистый код".freeze
|
49
49
|
.collapse(id="model_accesses_hash_#{u.id}")
|
50
50
|
pre= JSON.pretty_generate({"#{_model.name}": (u.ability.accesses[_model.name] || {}) })
|
51
|
-
.cf{style='clear: both'}
|
52
51
|
|
53
52
|
- elsif request.post?
|
54
53
|
- uniq_id = "rails_admin_model_accesses_#{(Time.new.to_f * 1000).to_i}".freeze
|
@@ -55,7 +55,6 @@
|
|
55
55
|
button(data-toggle="collapse" data-target="#abilities_hash")= "Чистый код".freeze
|
56
56
|
#abilities_hash.collapse
|
57
57
|
pre= JSON.pretty_generate @object.ability.abilities
|
58
|
-
.cf{style='clear: both'}
|
59
58
|
|
60
59
|
- elsif request.post?
|
61
60
|
- uniq_id = "rails_admin_user_abilities_#{(Time.new.to_f * 1000).to_i}".freeze
|
@@ -30,7 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.10"
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
32
|
|
33
|
-
spec.add_dependency "
|
34
|
-
|
35
|
-
spec.add_dependency 'rails_admin', "~> 0.8.1"
|
33
|
+
spec.add_dependency "rails_admin", '>= 1.0.0.rc'
|
36
34
|
end
|
data/release.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_user_abilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kiseliev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -39,39 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rails_admin
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
- - "<"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: '5.0'
|
47
|
+
version: 1.0.0.rc
|
51
48
|
type: :runtime
|
52
49
|
prerelease: false
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
54
51
|
requirements:
|
55
52
|
- - ">="
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '5.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: rails_admin
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 0.8.1
|
68
|
-
type: :runtime
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.8.1
|
54
|
+
version: 1.0.0.rc
|
75
55
|
description: CanCanCan fields for rails_admin
|
76
56
|
email:
|
77
57
|
- dev@redrocks.pro
|