shoulda_machinist_generator 0.4.1 → 0.4.2
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.
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.2
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<%% @page_title = "Manage <%= plural_name.humanize %>" %>
|
|
2
|
-
<h2>
|
|
3
|
-
|
|
2
|
+
<h2>
|
|
3
|
+
Manage <%= plural_name.humanize %>
|
|
4
|
+
</h2>
|
|
5
|
+
|
|
6
|
+
<p class="create-button">
|
|
7
|
+
<%%= link_to '<span class="left"></span><span class="middle">Create <%= singular_name.humanize %></span><span class="right"></span>', new_admin_<%= singular_name %>_path %>
|
|
8
|
+
</p>
|
|
4
9
|
|
|
5
10
|
<table class="grid" cellpadding="0" cellspacing="0">
|
|
6
11
|
<tr>
|
|
@@ -26,4 +31,5 @@
|
|
|
26
31
|
<td class="delete"><%%= link_to 'Delete', admin_<%= singular_name %>_path(<%= singular_name %>), :title => "Delete <%= singular_name %>", :confirm => 'Are you sure you want to delete this <%= singular_name %>?', :method => :delete %></td>
|
|
27
32
|
</tr>
|
|
28
33
|
<%% end %>
|
|
29
|
-
</table>
|
|
34
|
+
</table>
|
|
35
|
+
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
require 'test_helper'
|
|
2
2
|
|
|
3
3
|
class <%= class_name %>Test < ActiveSupport::TestCase
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<%
|
|
4
|
+
|
|
5
|
+
context "The #{class_name} model" do
|
|
6
|
+
<% for attribute in attributes -%>
|
|
7
|
+
should_have_db_column :<%= attribute.name %>
|
|
8
|
+
<% end -%>
|
|
9
|
+
end
|
|
10
|
+
|
|
7
11
|
end
|
|
8
12
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoulda_machinist_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.4.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Dave Hrycyszyn
|