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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1008a0eb3aebddf73a3e97ed26d6b31e44be8aab
4
- data.tar.gz: 5d7f045067f3b0435fd359ceab457dd3e932678e
3
+ metadata.gz: baef7329275e079877c06587c6fbfbb21b5272e9
4
+ data.tar.gz: 4b9178c6fbbd046368148aa29bee08b9a0b3a1a4
5
5
  SHA512:
6
- metadata.gz: 558b1939dc0ab28e54f029966815fb16278a954c1d0db70011e823709bd1488ed64f7a2ae805e09a2ebea50ef7505d1c4544847b581a4835fd3fe684d7d0a94e
7
- data.tar.gz: 821e1ac2bb5298d443fd4c720ac8e5383442e04d90d9eec4a420001443a1e8f17de3c00f2a16a4f72eb8fb7429a873e8d5403a36f9c5b3686b12d9ea8732699d
6
+ metadata.gz: 161fe223836e49668d314e92eb2cf6d4b12ad9cac36948a81e461bb976c8ed1dac408da716b336bb3b3b84de5874d91d5d4d2ff0fd863557c03e3fdf24369221
7
+ data.tar.gz: 30c1c211a286ddc52b5184f6f1c1bbc55075d659a10f2d8e2d57cf520b2577a01b3f06d00ea9219426ea7c14e9391b51f8e63717cff8f86a4c054b9064445a62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ants (0.2.5)
4
+ ants (0.2.6)
5
5
  devise
6
6
  mongoid (>= 4.0)
7
7
  mongoid-slug (>= 4.0.0)
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, :recoverable, :rememberable, :trackable, :validatable
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 last_sign_in_at
76
- 'Seen ' + ActionController::Base.helpers.time_ago_in_words(last_sign_in_at) + ' ago'
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
@@ -1,3 +1,3 @@
1
1
  module Ants
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
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-10 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid