customize_admin 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,9 @@ module CustomizeAdmin
12
12
 
13
13
  end
14
14
  end
15
-
15
+ def attributes
16
+ resource_class.attribute_names - %w(created_at updated_at)
17
+ end
16
18
 
17
19
  end
18
20
  end
@@ -1,4 +1,5 @@
1
1
  module CustomizeAdmin
2
2
  module BaseHelper
3
+
3
4
  end
4
5
  end
@@ -2,7 +2,7 @@
2
2
  <div class="page-header">
3
3
  <h1>
4
4
  Listing <%=resource_class.model_name.human%>
5
- a a a Base
5
+ a a a Base b b bjjjkkk
6
6
  <div class="pull-right">
7
7
  <%= button_to 'New', new_resource_path, :method => :get, :class => "btn primary" %>
8
8
  </div>
@@ -17,11 +17,11 @@ Listing <%=resource_class.model_name.human%>
17
17
  </p>
18
18
 
19
19
  <% end %>
20
- <%= test %>
20
+ <%#= test %>
21
21
  </br>
22
22
  <table class="zebra-striped">
23
23
  <tr>
24
- <% resource_class.attribute_names.each do |attr| %>
24
+ <% attributes.each do |attr| %>
25
25
  <th> <%= sortable attr, resource_class.human_attribute_name(attr) %> </th>
26
26
  <% end %>
27
27
  <th></th>
@@ -32,13 +32,12 @@ Listing <%=resource_class.model_name.human%>
32
32
  <% collection.each do |admin_resource| %>
33
33
  <tr>
34
34
 
35
- <% resource_class.attribute_names.each do |attr| %>
35
+ <% attributes.each do |attr| %>
36
36
  <td><%= admin_resource.public_send(attr).to_s.truncate(20) %> </td>
37
37
 
38
38
 
39
39
  <% end %>
40
-
41
- <%= render :partial => "index_action", :locals => { :admin_resource => admin_resource } %>
40
+ <%#= render :partial => "index_action", :locals => { :admin_resource => admin_resource } %>
42
41
  <%= render :partial => "more_index_action", :locals => { :admin_resource => admin_resource } %>
43
42
 
44
43
  </tr>
@@ -1,3 +1,3 @@
1
1
  module CustomizeAdmin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: customize_admin
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jakub Cieslar
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-03 00:00:00 Z
13
+ date: 2012-01-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails