activeadmin-logins 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f87d0b458274608008e82ca468036caa3db5c5ea
|
|
4
|
+
data.tar.gz: 3dc05ccebee6acebcdec7f49f11ef39168053087
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a348c0e8834918f9365b398f15244e8cc380f62c6b8342360fb5c4abd1c1d1a2fb57275c381215daf1ecd36728ae92150d042b4ce02c070661ceefbf3734190
|
|
7
|
+
data.tar.gz: ae55bbbe8c7bfdb43ae17616bfc5623ed3a28f731caacb56171b41d4fde7f5e50687ef39ea802ace7ab613430bc7aa26aa717708ba2800cecef59ed32a0f0fcb
|
|
@@ -25,11 +25,11 @@ module ActiveAdmin
|
|
|
25
25
|
|
|
26
26
|
# In order to hack the heroku issue with collations
|
|
27
27
|
# We're sorting in rails and not on the DB level
|
|
28
|
-
filter :user, collection: proc { User.all.sort_by { |u| u.
|
|
28
|
+
filter :user, collection: proc { User.all.sort_by { |u| u.email.downcase } }
|
|
29
29
|
|
|
30
30
|
index do
|
|
31
|
-
column(:user, sortable: "users.
|
|
32
|
-
link_to login.user.
|
|
31
|
+
column(:user, sortable: "users.email") do |login|
|
|
32
|
+
link_to login.user.email, admin_user_path(login.user)
|
|
33
33
|
end
|
|
34
34
|
column :ip
|
|
35
35
|
column :user_agent
|
|
@@ -65,9 +65,6 @@ end
|
|
|
65
65
|
UserLoginWorker.perform_async(self.id, request.remote_ip, request.user_agent)
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
def full_name
|
|
69
|
-
"#{first_name} #{last_name}"
|
|
70
|
-
end
|
|
71
68
|
|
|
72
69
|
RUBY
|
|
73
70
|
end
|