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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e876a062dad8a99dc15b8954c7bdf447f843de121bc578932068394cab917000
4
- data.tar.gz: 67c9dc597e823267475da811830f40699496537467a0fb2ca0cf20395543addc
3
+ metadata.gz: cacb6bceddaa9fb6ba8f8c3945e7155e4a2b14b69e6a186515f7a422f4ff6958
4
+ data.tar.gz: 182bfdb83177b9d43275af6e81b2a41f7b2dcdd0d6755b91f35067f5cb50d6a4
5
5
  SHA512:
6
- metadata.gz: 3b81d13ef0544cb3aa9ec08fb89aaae894a6636e551aa8234653cd03ec55a1ca8a4df89616aad8266f81222320655f112d16b2a50c02bcfdcf5d9f417715f7f4
7
- data.tar.gz: 2b2f61c502fed7615f2efbc868d4874c390261103d261364e893af9f4ff4233d66528557cb8a911e7bfc7d8837bfb0eb8d41cec2d4c501ab3dccb57f03614f66
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 User</h1>
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 user</button>
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 User</h1>
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 %> %>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SunSword
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sun-sword
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kotarominami