hot-glue 0.6.9 → 0.6.9.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e1a2a4647618d6a657137799251c71e0f28dbc4023d2c870286fe9103971d88
|
4
|
+
data.tar.gz: 50bd3438275045b1c97a7f0834eb8e7e2a646381f5795134929cd79f35c78190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d115b6cee913161d39e9b345c994764fae30a4bda922396c5cac953d8918607844761082014d112c305d8e4ce1635d0c74a1481e5179cc6c07dcfbd954c6dcfa
|
7
|
+
data.tar.gz: 566eddd287147279e2defed46ac941c1674002c35e54535feabae2b81975a54415990d464a1725af7c51fd59a4375d98d2a9d2145a515e16daf86920346b593a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1443,7 +1443,7 @@ However, two special variables are in scope which you can use in your calling co
|
|
1443
1443
|
|
1444
1444
|
Either one must be received by your factory for your factory to create data based off the inputted data.
|
1445
1445
|
|
1446
|
-
|
1446
|
+
Remember, `*_params` has the input params passed only the through the sanitizer, and modified_params has it passed through the timezone aware mechanism and other Hot Glue-specific defaults.
|
1447
1447
|
|
1448
1448
|
Always:
|
1449
1449
|
• In your factory calling code, assign the variable `factory = ` (do not use a different variable name),
|
@@ -1686,6 +1686,13 @@ These automatic pickups for partials are detected at buildtime. This means that
|
|
1686
1686
|
|
1687
1687
|
|
1688
1688
|
# VERSION HISTORY
|
1689
|
+
#### 2024-12-17 v0.6.9.2
|
1690
|
+
• adds alt_lookup to related_set_field.rb and fixes a variable passdown problem in edit.html.erb
|
1691
|
+
|
1692
|
+
|
1693
|
+
#### 2024-12-16 v0.6.9.1
|
1694
|
+
• Fixes hardcoding in #new action
|
1695
|
+
|
1689
1696
|
|
1690
1697
|
#### 2024-12-14 v0.6.9
|
1691
1698
|
|
@@ -1705,7 +1712,7 @@ Make sure your Order model has a scope `is_open`
|
|
1705
1712
|
• refactor of modified datetime feature to prefer current user as set by the --auth setting (will not work in @gd mode). future implemenation will further refine
|
1706
1713
|
• when using big edit, `update.turbo_stream.erb` is no longer written
|
1707
1714
|
• removes Pundit policy_scope() around new operations
|
1708
|
-
• refactors to how parent objects from a nested controller pass these variables to lower-level partials; this implementation hard-
|
1715
|
+
• refactors to how parent objects from a nested controller pass these variables to lower-level partials; this implementation hard-codes the nested set as locals and also builds a `nested_for` key (string)
|
1709
1716
|
|
1710
1717
|
|
1711
1718
|
#### 2024-12-05 - v0.6.8
|
@@ -4,6 +4,7 @@ class RelatedSetField < Field
|
|
4
4
|
|
5
5
|
def initialize( class_name: , default_boolean_display:, display_as: ,
|
6
6
|
name: , singular: ,
|
7
|
+
alt_lookup: ,
|
7
8
|
update_show_only: ,
|
8
9
|
hawk_keys: , auth: , sample_file_path:, ownership_field: ,
|
9
10
|
attachment_data: nil , layout_strategy: , form_placeholder_labels: nil,
|
@@ -95,7 +95,7 @@ class <%= controller_class_name %> < <%= controller_descends_from %>
|
|
95
95
|
@action = 'new'
|
96
96
|
rescue Pundit::NotAuthorizedError
|
97
97
|
flash[:alert] = 'You are not authorized to perform this action.'
|
98
|
-
|
98
|
+
load_all_<%= plural %>
|
99
99
|
render :index<% end %>
|
100
100
|
end
|
101
101
|
|
@@ -131,7 +131,7 @@ class <%= controller_class_name %> < <%= controller_descends_from %>
|
|
131
131
|
<% unless @display_edit_after_create %>render :create, status: :unprocessable_entity<% else %>render :new , status: :unprocessable_entity<% end %>
|
132
132
|
end<% if @pundit %>
|
133
133
|
rescue Pundit::NotAuthorizedError => e
|
134
|
-
|
134
|
+
@<%= singular %>.errors.add(:base, e.message)
|
135
135
|
render :create, status: :unprocessable_entity<% end %>
|
136
136
|
end
|
137
137
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="col-md-12">
|
5
5
|
<\%= link_to "<% if @button_icons == 'font-awesome' %><i class='fa fa-arrow-circle-left 2x'></i><% end %> Back to list".html_safe, <%= path_helper_plural(true) %> %>
|
6
6
|
<% end %>
|
7
|
-
<\%= render partial: "edit", locals: {<%= singular %>: @<%= singular %><%= @nested_set.any? ? () : "" %>} %>
|
7
|
+
<\%= render partial: "edit", locals: {<%= singular %>: @<%= singular %><%= @nested_set.any? ? ", " + (@nested_set.collect{|x| "#{x[:singular]}: @#{x[:singular]}"}.join(", ") ) : "" %>} %>
|
8
8
|
<% if @big_edit %>
|
9
9
|
</div>
|
10
10
|
</div>
|
data/lib/hotglue/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hot-glue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.9
|
4
|
+
version: 0.6.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Fleetwood-Boldt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|