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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0724c18ed35cc088eb057bf2f693eaa6315c10a5
4
- data.tar.gz: 151ab4476f82835869c2d52a3c1b23298ac4ec4c
3
+ metadata.gz: 9c7458d9ee5189d065082783dd8015192ad8464e
4
+ data.tar.gz: d4e7d80931f6251495538432e370bc817b6c389a
5
5
  SHA512:
6
- metadata.gz: a96038b5f84e54aaefde96bd78012c2c1336754c4ad1e7f53c28eb65f1ce35228d081c046cb14e7f4740fa7a01047c6729320e0449d61d93e281a9561bceb838
7
- data.tar.gz: 859e7f4b874a3dd40b446272230c16d34a7337005f4bdf29f1770ab94710a138bbcf6f59d7076cc783d52606b1f52a5ab5f04e8128144a4cef1ce390d8f6ec80
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUserAbilities
2
- VERSION = "0.2.0.1".freeze
2
+ VERSION = "0.2.0.3".freeze
3
3
  end
@@ -30,5 +30,7 @@ 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 "rails", ['>= 5.0', '< 6.0']
34
+
33
35
  spec.add_dependency "rails_admin", '>= 1.0.0.rc'
34
36
  end
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.1
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-09-13 00:00:00.000000000 Z
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