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: 36a0983fa28a5a19201b47adfa92bdbeba332b9d
4
- data.tar.gz: 0bfa372b7ce3b68f9df7d18d67d8b79b5505e041
3
+ metadata.gz: 10729e54eb4fc14dba2cb00ab615d2fb947b2958
4
+ data.tar.gz: 34342452a7743662f44a34d085e5ef96a697bec7
5
5
  SHA512:
6
- metadata.gz: 574d083d50214ebfa04680f30867645b262b4db0aed5a0c0e8b8105a22ffe6801f358265858fa8b35969e4e112805c4c8e9235085162c5991018ca74b27d9cb5
7
- data.tar.gz: ba71f6ab43f34d4e4ae97c5800e4f0593adaa201347dd04e8c3035b8131c15621e0c018a7ebb638839611f38008278525a7bce5f4e3c747cac8f5a9eb3aa9293
6
+ metadata.gz: 5cb8a1a1a217d73c2b556ae17ccdd11b91ebc2862697ccb79c2695c70629a3ee20d9fd9378fb20a92ed39280a74c59ae5ecc727c3258e769f902bc7e725e1c54
7
+ data.tar.gz: 26f9ca16134444168244f7d4eaf96f443e1966e1e6d11b69668d4a8b75bc10282c746fb4284d05601096dc582f9dfd5542c24777c1d6b0db6d78407043eaaeb3
@@ -1,12 +1,13 @@
1
1
  module LotusAdmin
2
2
  class UsersController < LotusAdmin::AuthenticatedController
3
- let(:menu_identifier) { :users_index }
4
- let(:resource_class) { LotusAdmin::User }
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
- .block-header
2
- %h2= page_title!(resource_class.model_name.human(count: 2))
1
+ - content_for :action_items do
2
+ %li= new_link
3
3
 
4
- %ul.actions
5
- %li= new_link
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
- - users.each do |user|
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)
@@ -1,3 +1,3 @@
1
1
  module LotusAdmin
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Millsaps-Brewer