Compare commits
1 Commits
main
...
kilo/auto-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0dcf0f0ea |
@ -35,7 +35,7 @@ class Captain::AssistantResponse < ApplicationRecord
|
||||
|
||||
before_validation :ensure_account
|
||||
before_validation :ensure_status
|
||||
after_commit :update_response_embedding
|
||||
after_commit :update_response_embedding, on: %i[create update]
|
||||
|
||||
scope :ordered, -> { order(created_at: :desc) }
|
||||
scope :by_account, ->(account_id) { where(account_id: account_id) }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user