Skip to content

Commit e1e9ede

Browse files
committed
fix: add missing blank lines for improved readability in generator and model files
1 parent 6da10d9 commit e1e9ede

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

lib/generators/ruby_llm/install_generator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module RubyLLM
77
# Generator for RubyLLM Rails models and migrations
88
class InstallGenerator < Rails::Generators::Base
99
include Rails::Generators::Migration
10+
1011
namespace 'ruby_llm:install'
1112

1213
source_root File.expand_path('install/templates', __dir__)

spec/dummy/app/models/chat.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
class Chat < ApplicationRecord
44
include RubyLLM::ActiveRecord::ActsAs
5+
56
acts_as_chat
67
end

spec/dummy/app/models/message.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
class Message < ApplicationRecord
44
include RubyLLM::ActiveRecord::ActsAs
5+
56
acts_as_message
67
has_many_attached :attachments
78
end

spec/dummy/app/models/tool_call.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
class ToolCall < ApplicationRecord
44
include RubyLLM::ActiveRecord::ActsAs
5+
56
acts_as_tool_call
67
end

spec/ruby_llm/active_record/acts_as_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,20 @@ module Assistants # rubocop:disable Lint/ConstantDefinitionInBlock,RSpec/LeakyCo
192192
class BotChat < ActiveRecord::Base # rubocop:disable RSpec/LeakyConstantDeclaration
193193
self.table_name = 'bot_chats'
194194
include RubyLLM::ActiveRecord::ActsAs
195+
195196
acts_as_chat message_class: 'BotMessage', tool_call_class: 'BotToolCall'
196197
end
197198
end
198199

199200
class BotMessage < ActiveRecord::Base # rubocop:disable Lint/ConstantDefinitionInBlock,RSpec/LeakyConstantDeclaration
200201
include RubyLLM::ActiveRecord::ActsAs
202+
201203
acts_as_message chat_class: 'Assistants::BotChat', tool_call_class: 'BotToolCall'
202204
end
203205

204206
class BotToolCall < ActiveRecord::Base # rubocop:disable Lint/ConstantDefinitionInBlock,RSpec/LeakyConstantDeclaration
205207
include RubyLLM::ActiveRecord::ActsAs
208+
206209
acts_as_tool_call message_class: 'BotMessage'
207210
end
208211

0 commit comments

Comments
 (0)