thecore 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/user.rb +1 -1
- data/lib/thecore/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: a90a9790b6fe194f9f61f804e7935306a3e55641
|
4
|
+
data.tar.gz: 96f7883e46029239ee41d71ab968f99cd9a20f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 880eeef4a2596e491555f0c8f22c08dada463630813d5b373bb7039af0672e8ad91ac95be78d2b36c2a5b1343c1c60142a7887154b0dfedaf1f6a00543642b2b
|
7
|
+
data.tar.gz: 55aee12e48f4bd8b33e12717158d1387be5e625d0f64b5b800b1e2d36d8831308bdc84efd7aed5edb81e6c3e8b9be44c477e8bfbe07cd1ad3ecb72c1c44be58c
|
data/app/models/user.rb
CHANGED
@@ -23,7 +23,7 @@ class User < ApplicationRecord
|
|
23
23
|
validates :password, presence: true, on: :create
|
24
24
|
validates :password_confirmation, presence: true, on: :create
|
25
25
|
|
26
|
-
validates :roles, presence: true, on: :create
|
26
|
+
validates :roles, presence: true, on: :create, :unless => lambda { ROLES.blank? }
|
27
27
|
|
28
28
|
def self.paged(page_number)
|
29
29
|
order(admin: :desc, username: :asc).page page_number
|
data/lib/thecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|