eac_rails_base0 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eac_rails_base0/ability.rb +2 -5
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75cb5407de93b37fa45b9afdd12e6534eb5550fe
|
4
|
+
data.tar.gz: a6c8cf6ea2e8284406ca6e67b29444f0c3a120e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01254e67075da52f11486334f65de397b7aa22d53482832dfac182a6ef2fa3b320f9d4a3c5ce9b3c1d22c3bc24e74b10c966873921f25eef687f16a21886dc8f
|
7
|
+
data.tar.gz: 0c5e8fe28271d6496fb329f643f84b06742181f707a0f0126b197ca0c0c70b12e92c4c27d9b4c2baeaab37bd30dd3eaeb2b82140d00e5f8c4638a62ebae75e0e
|
@@ -11,11 +11,8 @@ module EacRailsBase0
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def devise_rules(user)
|
14
|
-
|
15
|
-
|
16
|
-
else
|
17
|
-
can :destroy, 'Devise::Session'
|
18
|
-
end
|
14
|
+
can :destroy, 'Devise::Session' unless user.new_record?
|
15
|
+
can :create, 'Devise::Session'
|
19
16
|
end
|
20
17
|
|
21
18
|
def administrator_rules(user)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|