lotus_admin 0.4.1 → 0.4.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10729e54eb4fc14dba2cb00ab615d2fb947b2958
|
4
|
+
data.tar.gz: 34342452a7743662f44a34d085e5ef96a697bec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb8a1a1a217d73c2b556ae17ccdd11b91ebc2862697ccb79c2695c70629a3ee20d9fd9378fb20a92ed39280a74c59ae5ecc727c3258e769f902bc7e725e1c54
|
7
|
+
data.tar.gz: 26f9ca16134444168244f7d4eaf96f443e1966e1e6d11b69668d4a8b75bc10282c746fb4284d05601096dc582f9dfd5542c24777c1d6b0db6d78407043eaaeb3
|
@@ -1,12 +1,13 @@
|
|
1
1
|
module LotusAdmin
|
2
2
|
class UsersController < LotusAdmin::AuthenticatedController
|
3
|
-
|
4
|
-
|
5
|
-
let(:users) { paginate(resource_class.all) }
|
3
|
+
manages LotusAdmin::User
|
4
|
+
|
6
5
|
let(:user) { resource_class.find(params[:id]) }
|
7
6
|
|
8
7
|
permit_params :first_name, :last_name, :email, :time_zone
|
9
8
|
|
9
|
+
beginning_of_scope_chain { resource_class.all }
|
10
|
+
|
10
11
|
def new
|
11
12
|
self.user = resource_class.new
|
12
13
|
end
|
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
%
|
1
|
+
- content_for :action_items do
|
2
|
+
%li= new_link
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
.card
|
8
|
-
.card-body.table-responsive
|
4
|
+
= render_index do
|
5
|
+
.table-responsive
|
9
6
|
%table.table.table-striped.table-bordered
|
10
7
|
%thead
|
11
8
|
%th #
|
@@ -15,7 +12,7 @@
|
|
15
12
|
%th
|
16
13
|
|
17
14
|
%tbody
|
18
|
-
-
|
15
|
+
- collection.each do |user|
|
19
16
|
%tr
|
20
17
|
%td= link_to user.id, [lotus_admin, user]
|
21
18
|
%td= user.first_name
|
@@ -26,5 +23,3 @@
|
|
26
23
|
%li= view_link(user)
|
27
24
|
%li= edit_link(user)
|
28
25
|
%li= destroy_link(user)
|
29
|
-
|
30
|
-
= pagination(users)
|
data/lib/lotus_admin/version.rb
CHANGED