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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec9c9509efb10e679d7135e82f8bc300d8ec5441
4
- data.tar.gz: f626477ca7cfdc95e37855db65cf16fbc35a29a2
3
+ metadata.gz: a90a9790b6fe194f9f61f804e7935306a3e55641
4
+ data.tar.gz: 96f7883e46029239ee41d71ab968f99cd9a20f00
5
5
  SHA512:
6
- metadata.gz: e84eb7350a2c566f78091adc08ae801bb598bae2a05d9f6f078fd8e71772d213a71fa5cf8fc27ff725515b7395dd6e8f36af8ab476591e549c8c603f56648fc8
7
- data.tar.gz: 25e4425d68e9e87ad6ea9cc2a02a7416eab57d4b019ca868664a9fa7275dc58d311dfdbbb7e952d5322ab29f1fb76fd113e8ffa5ff76800fe4d04c88fab42991
6
+ metadata.gz: 880eeef4a2596e491555f0c8f22c08dada463630813d5b373bb7039af0672e8ad91ac95be78d2b36c2a5b1343c1c60142a7887154b0dfedaf1f6a00543642b2b
7
+ data.tar.gz: 55aee12e48f4bd8b33e12717158d1387be5e625d0f64b5b800b1e2d36d8831308bdc84efd7aed5edb81e6c3e8b9be44c477e8bfbe07cd1ad3ecb72c1c44be58c
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.5.2'.freeze
2
+ VERSION = '1.5.3'.freeze
3
3
  end
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.2
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-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails