ants 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/admin.rb +8 -3
- data/lib/ants/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: baef7329275e079877c06587c6fbfbb21b5272e9
|
4
|
+
data.tar.gz: 4b9178c6fbbd046368148aa29bee08b9a0b3a1a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 161fe223836e49668d314e92eb2cf6d4b12ad9cac36948a81e461bb976c8ed1dac408da716b336bb3b3b84de5874d91d5d4d2ff0fd863557c03e3fdf24369221
|
7
|
+
data.tar.gz: 30c1c211a286ddc52b5184f6f1c1bbc55075d659a10f2d8e2d57cf520b2577a01b3f06d00ea9219426ea7c14e9391b51f8e63717cff8f86a4c054b9064445a62
|
data/Gemfile.lock
CHANGED
data/app/models/admin.rb
CHANGED
@@ -11,7 +11,12 @@ class Admin
|
|
11
11
|
|
12
12
|
# Include default devise modules. Others available are:
|
13
13
|
# :confirmable, :lockable, :timeoutable, :registerable and :omniauthable
|
14
|
-
devise :database_authenticatable,
|
14
|
+
devise :database_authenticatable,
|
15
|
+
:recoverable,
|
16
|
+
:rememberable,
|
17
|
+
:trackable,
|
18
|
+
:validatable,
|
19
|
+
:authentication_keys => [:email]
|
15
20
|
|
16
21
|
## Database authenticatable
|
17
22
|
field :email, type: String, default: ""
|
@@ -72,8 +77,8 @@ class Admin
|
|
72
77
|
private
|
73
78
|
|
74
79
|
def last_sign_in_ago
|
75
|
-
if
|
76
|
-
'Seen ' + ActionController::Base.helpers.time_ago_in_words(
|
80
|
+
if current_sign_in_at
|
81
|
+
'Seen ' + ActionController::Base.helpers.time_ago_in_words(current_sign_in_at) + ' ago'
|
77
82
|
else
|
78
83
|
'Never seen'
|
79
84
|
end
|
data/lib/ants/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|