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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e91592add61a9ddfc13ef06752464004e65c97bc
4
- data.tar.gz: 8848231b84320568fbca1cd688f4b5462367a6a0
3
+ metadata.gz: 75cb5407de93b37fa45b9afdd12e6534eb5550fe
4
+ data.tar.gz: a6c8cf6ea2e8284406ca6e67b29444f0c3a120e9
5
5
  SHA512:
6
- metadata.gz: 2078329f4541358994d71bc67d0206e155fefe12cd865e710a136a1c35138cc07dd752d03b59c14dc7dfe540504264e73ae7b8d547c37789b582bc4b9d4bf8e6
7
- data.tar.gz: e2af016dfe6b9ec1b639bd9b30f965372d3662ee0e2b447b64c09a74530f0d38cdce3c15d82add273597e28b642cac30896d4463ed09e97c3dc5844af10e8112
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
- if user.new_record?
15
- can :create, 'Devise::Session'
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass