Module: LLM::ActiveRecord::ActsAsLLM::Hooks
- Defined in:
- lib/llm/active_record/acts_as_llm.rb
Class Method Summary collapse
-
.extended(model) ⇒ void
Called when hooks are extended onto an ActiveRecord model.
Class Method Details
.extended(model) ⇒ void
This method returns an undefined value.
Called when hooks are extended onto an ActiveRecord model.
103 104 105 |
# File 'lib/llm/active_record/acts_as_llm.rb', line 103 def self.extended(model) model.include InstanceMethods unless model.ancestors.include?(InstanceMethods) end |