rails_admin_user_abilities 0.2.0.1 → 0.2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/rails_admin/main/model_accesses.html.slim +1 -0
- data/app/views/rails_admin/main/user_abilities.html.slim +1 -0
- data/lib/rails_admin_user_abilities/models/mongoid/user_ability.rb +1 -1
- data/lib/rails_admin_user_abilities/version.rb +1 -1
- data/rails_admin_user_abilities.gemspec +2 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c7458d9ee5189d065082783dd8015192ad8464e
|
4
|
+
data.tar.gz: d4e7d80931f6251495538432e370bc817b6c389a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586cc6a8fcbee5410ecae1627243647be2bbe6ee26fcdac6b33e368bfaa9e59ab87f1a0a9a745cf30cd32c9f8bcd3f4ca8e9c4412025e8ba95b31bce15b10dcb
|
7
|
+
data.tar.gz: 2d31eb0d7f7b639c80c5a6fa4987ad07cc959d52bc33fd40355c29e76b9bd5eebe270be261b4fbf5dcf2f447dec053c731e62b41f10e37be152bfad5ce7afe9f
|
@@ -48,6 +48,7 @@
|
|
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'}
|
51
52
|
|
52
53
|
- elsif request.post?
|
53
54
|
- uniq_id = "rails_admin_model_accesses_#{(Time.new.to_f * 1000).to_i}".freeze
|
@@ -55,6 +55,7 @@
|
|
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'}
|
58
59
|
|
59
60
|
- elsif request.post?
|
60
61
|
- uniq_id = "rails_admin_user_abilities_#{(Time.new.to_f * 1000).to_i}".freeze
|
@@ -8,7 +8,7 @@ module RailsAdminUserAbilities
|
|
8
8
|
include ::Mongoid::Timestamps::Short
|
9
9
|
# include ::Mongoid::Userstamp
|
10
10
|
|
11
|
-
belongs_to :rails_admin_user_abilitable, polymorphic: true
|
11
|
+
belongs_to :rails_admin_user_abilitable, polymorphic: true, optional: true
|
12
12
|
|
13
13
|
store_in collection: "rails_admin_user_abilities"
|
14
14
|
|
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.2.0.
|
4
|
+
version: 0.2.0.3
|
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-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,26 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '6.0'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '5.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '6.0'
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
62
|
name: rails_admin
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|