sun-sword 0.0.6 → 0.0.7
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 +4 -4
- data/lib/generators/sun_sword/templates_scaffold/controllers/controller.rb.tt +4 -0
- data/lib/generators/sun_sword/templates_scaffold/views/edit.html.erb.tt +1 -1
- data/lib/generators/sun_sword/templates_scaffold/views/index.html.erb.tt +1 -1
- data/lib/generators/sun_sword/templates_scaffold/views/new.html.erb.tt +1 -1
- data/lib/sun_sword/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cacb6bceddaa9fb6ba8f8c3945e7155e4a2b14b69e6a186515f7a422f4ff6958
|
4
|
+
data.tar.gz: 182bfdb83177b9d43275af6e81b2a41f7b2dcdd0d6755b91f35067f5cb50d6a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cd45b713edd8e23fa0dabba54d60f3e7fb5c50726190d3b4a514f48392589fa27e04d49576e9173485c6ec22e17990cbded89dc30f72ff0fca11ceeeb38ca48
|
7
|
+
data.tar.gz: 2917fc97426c914670bbd48da1cb9547f55918a2fb991bc2cd11580e9aaa5dfd24295f8f704ebf6658353b2dc2dcdcd4ffb7426a89b18f514382d4fab70be894
|
@@ -93,7 +93,11 @@ class <%= [@route_scope_class, @scope_class].reject { |c| c.empty? }.join("::")
|
|
93
93
|
private
|
94
94
|
|
95
95
|
def build_contract(params)
|
96
|
+
<%if @resource_owner_id.present? -%>
|
96
97
|
{ <%=@resource_owner_id%>: <%=@resource_owner_id%> }.merge(params)
|
98
|
+
<%else -%>
|
99
|
+
{}.merge(params)
|
100
|
+
<%end -%>
|
97
101
|
end
|
98
102
|
|
99
103
|
# Use callbacks to share common setup or constraints between actions.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="flow-root class-card-container">
|
3
3
|
<div class="flex items-center p-2 mb-10">
|
4
4
|
<div class="flex-auto">
|
5
|
-
<h1 class="font-semibold text-gray-900">Editing
|
5
|
+
<h1 class="font-semibold text-gray-900">Editing <%= @subject_class %></h1>
|
6
6
|
</div>
|
7
7
|
</div>
|
8
8
|
<%%= render "form", <%= @variable_subject %>: @<%= @variable_subject %> %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
</div>
|
11
11
|
<div class="mt-4 sm:ml-16 sm:mt-0 sm:flex-none">
|
12
12
|
<%%= link_to new_<%= [@route_scope_path, @scope_path.singularize].reject { |c| c.empty? }.join("_") %>_path do %>
|
13
|
-
<button type="button" class="block class-button">Add
|
13
|
+
<button type="button" class="block class-button">Add <%= @subject_class %></button>
|
14
14
|
<%% end %>
|
15
15
|
</div>
|
16
16
|
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="flow-root class-card-container">
|
3
3
|
<div class="flex items-center p-2 mb-10">
|
4
4
|
<div class="flex-auto">
|
5
|
-
<h1 class="font-semibold text-gray-900">Creating
|
5
|
+
<h1 class="font-semibold text-gray-900">Creating <%= @subject_class %></h1>
|
6
6
|
</div>
|
7
7
|
</div>
|
8
8
|
<%%= render "form", <%= @variable_subject %>: @<%= @variable_subject %> %>
|
data/lib/sun_sword/version.rb
CHANGED