brick 1.0.216 → 1.0.217
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/brick/extensions.rb +7 -7
- data/lib/brick/frameworks/rails/form_tags.rb +1 -1
- data/lib/brick/version_number.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: 6058423ea3fdcc6b213efcbffc1dd2d5171a08949c08338950f0dd75c35d9351
|
|
4
|
+
data.tar.gz: 876598fc0c0bd95725340fe830af39d318bb4aa1893c6178ef2ff0547dbd1960
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93604235b727723b236ce5fca50f6644b53a478918acd7d20e4e60f454f62d46cf98d5c791f043db98268ad6ee77a43ed29278abf47c60ca3228347ebcd9c739
|
|
7
|
+
data.tar.gz: 0f2a06b4b4261bf186823dca721d09c3e18a808f9449448f233738167a640d990391b309b55247c45fe8850ceab173cf2c5e5e5d62b05c0e129351bc37b61251
|
data/lib/brick/extensions.rb
CHANGED
|
@@ -867,15 +867,15 @@ module ActiveRecord
|
|
|
867
867
|
end
|
|
868
868
|
v1 << id_for_tables[v.first].compact
|
|
869
869
|
end
|
|
870
|
-
if k1.name == 'ActiveStorage::Attachment'
|
|
871
|
-
binding.pry
|
|
872
|
-
(@_brick_includes ||= {})[v1.first.first.to_s] = [v1.first[1..-1], 'blob']
|
|
873
|
-
# x = 5
|
|
874
|
-
# elsif k1.name == 'ActiveStorage::Blob'
|
|
870
|
+
# if k1.name == 'ActiveStorage::Attachment'
|
|
875
871
|
# binding.pry
|
|
876
|
-
# (@_brick_includes ||= {})[v1.first.first.to_s] = v1[
|
|
872
|
+
# (@_brick_includes ||= {})[v1.first.first.to_s] = [v1.first[1..-1], 'blob']
|
|
877
873
|
# # x = 5
|
|
878
|
-
|
|
874
|
+
# # elsif k1.name == 'ActiveStorage::Blob'
|
|
875
|
+
# # binding.pry
|
|
876
|
+
# # (@_brick_includes ||= {})[v1.first.first.to_s] = v1[0..1]
|
|
877
|
+
# # # x = 5
|
|
878
|
+
# end
|
|
879
879
|
end
|
|
880
880
|
end
|
|
881
881
|
join_array.each do |assoc_name|
|
|
@@ -118,7 +118,7 @@ module Brick::Rails::FormTags
|
|
|
118
118
|
(classes ||= []) << 'right' if val.is_a?(Numeric) && !bt
|
|
119
119
|
out << " class=\"#{classes.join(' ')}\"" if classes&.present?
|
|
120
120
|
out << '>'
|
|
121
|
-
binding.pry if col_name == 'event_image_attachment' && obj.id == 6
|
|
121
|
+
# binding.pry if col_name == 'event_image_attachment' && obj.id == 6
|
|
122
122
|
if bt
|
|
123
123
|
if bt[2] && obj.respond_to?(poly_id_col = "#{bt.first}_id") # Polymorphic?
|
|
124
124
|
if (poly_id = obj.send(poly_id_col))
|
data/lib/brick/version_number.rb
CHANGED