thecore 1.4.7 → 1.4.8
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 +4 -4
- 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: 4600fe4f44c7075a60b7118b759278e305cab539
|
4
|
+
data.tar.gz: 38636092254326d28dc90b3e139aa02f686cfbe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce80df2f81a9ab16281f8cf836cd2a28a0ffc1ff7bc61b5e0b615f1d00a3b5a1ac928d666c9e3ae9be36b76e02ee86ba41759d1900d61340792efeb9b2806495
|
7
|
+
data.tar.gz: b786d380c39ea3d2e936425f417107223775fc28aaabf56eaaed785bbb23a7760628a35cfc6606bf3bf2820880142773850eb20d9b5b38e9a63b209daee778c6
|
data/app/models/user.rb
CHANGED
@@ -38,23 +38,23 @@ class User < ApplicationRecord
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.last_signups(count)
|
41
|
-
order(created_at: :desc).limit(count).select("id","username","
|
41
|
+
order(created_at: :desc).limit(count).select("id","username","created_at")
|
42
42
|
end
|
43
43
|
|
44
44
|
def self.last_signins(count)
|
45
45
|
order(last_sign_in_at:
|
46
|
-
:desc).limit(count).select("id","username","
|
46
|
+
:desc).limit(count).select("id","username","last_sign_in_at")
|
47
47
|
end
|
48
48
|
|
49
49
|
def self.users_count
|
50
|
-
where(
|
50
|
+
where(admin: false, locked: false).count
|
51
51
|
end
|
52
52
|
|
53
53
|
def title
|
54
54
|
username
|
55
55
|
end
|
56
56
|
|
57
|
-
serialize :roles, Array
|
57
|
+
#serialize :roles, Array
|
58
58
|
def roles_enum
|
59
59
|
# Do not EDIT below this line
|
60
60
|
ROLES.each_with_index.map {|a,i| [I18n.t("roles.#{a.to_sym}"), (i+1).to_s]}
|
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.4.
|
4
|
+
version: 1.4.8
|
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-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|