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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d8bdc3c5f7cae3c8c48e4f228f88dccac0b2631
4
- data.tar.gz: 242208f0531e3a5814564cc135ef99a9521df66e
3
+ metadata.gz: 4600fe4f44c7075a60b7118b759278e305cab539
4
+ data.tar.gz: 38636092254326d28dc90b3e139aa02f686cfbe9
5
5
  SHA512:
6
- metadata.gz: dbe41a4a3cc11cedfaf4dc8c8acfc217949a4a60b782cdb9de8fbe2c3789827c3b8642d9bc43349e1d392edb7b9bb1519bfb49d1bfcde6cd9b3fd41cda39680b
7
- data.tar.gz: 80086d62dbc1f4df852ca0fa2f71ab6f46da436886676241481c4e22b914f77c66a1a34e66e28291b2b5279d471b676b21d920bf57d4963f14b7dd9ff411f75a
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","slug","created_at")
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","slug","last_sign_in_at")
46
+ :desc).limit(count).select("id","username","last_sign_in_at")
47
47
  end
48
48
 
49
49
  def self.users_count
50
- where("admin = ? AND locked = ?",false,false).count
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]}
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.4.7'.freeze
2
+ VERSION = '1.4.8'.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.4.7
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-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails