Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion gemfiles/rails_7.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ GEM
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
Expand Down Expand Up @@ -224,6 +225,8 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
os (1.1.4)
Expand Down Expand Up @@ -355,6 +358,7 @@ GEM
simplecov (~> 0.19)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
sqlite3 (2.7.3-x86_64-darwin)
sqlite3 (2.7.3-x86_64-linux-gnu)
stringio (3.1.7)
thor (1.4.0)
Expand All @@ -380,6 +384,7 @@ GEM
zeitwerk (2.7.3)

PLATFORMS
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -416,4 +421,4 @@ DEPENDENCIES
webmock (~> 3.18)

BUNDLED WITH
2.6.9
2.5.5
7 changes: 6 additions & 1 deletion gemfiles/rails_7.2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ GEM
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
Expand Down Expand Up @@ -217,6 +218,8 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
os (1.1.4)
Expand Down Expand Up @@ -348,6 +351,7 @@ GEM
simplecov (~> 0.19)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
sqlite3 (2.7.3-x86_64-darwin)
sqlite3 (2.7.3-x86_64-linux-gnu)
stringio (3.1.7)
thor (1.4.0)
Expand All @@ -374,6 +378,7 @@ GEM
zeitwerk (2.7.3)

PLATFORMS
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -410,4 +415,4 @@ DEPENDENCIES
webmock (~> 3.18)

BUNDLED WITH
2.6.9
2.5.5
7 changes: 6 additions & 1 deletion gemfiles/rails_8.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ GEM
concurrent-ruby (~> 1.1)
webrick (~> 1.7)
websocket-driver (~> 0.7)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
Expand Down Expand Up @@ -217,6 +218,8 @@ GEM
net-smtp (0.5.1)
net-protocol
nio4r (2.7.4)
nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4)
os (1.1.4)
Expand Down Expand Up @@ -348,6 +351,7 @@ GEM
simplecov (~> 0.19)
simplecov-html (0.13.2)
simplecov_json_formatter (0.1.4)
sqlite3 (2.7.3-x86_64-darwin)
sqlite3 (2.7.3-x86_64-linux-gnu)
stringio (3.1.7)
thor (1.4.0)
Expand All @@ -374,6 +378,7 @@ GEM
zeitwerk (2.7.3)

PLATFORMS
x86_64-darwin-21
x86_64-linux

DEPENDENCIES
Expand Down Expand Up @@ -410,4 +415,4 @@ DEPENDENCIES
webmock (~> 3.18)

BUNDLED WITH
2.6.9
2.5.5
4 changes: 3 additions & 1 deletion lib/ruby_llm/active_record/chat_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ def prepare_for_active_storage(attachments)
case attachment
when ActionDispatch::Http::UploadedFile, ActiveStorage::Blob
attachment
when ActiveStorage::Attached::One, ActiveStorage::Attached::Many
when ActiveStorage::Attached::One
attachment.blob
when ActiveStorage::Attached::Many
attachment.blobs
when Hash
attachment.values.map { |v| prepare_for_active_storage(v) }
Expand Down