Module: LLMSpecs::Model::ActiveModelCompliance
- Included in:
- LLMSpecs::Model
- Defined in:
- lib/llm_specs/active_model.rb
Instance Method Summary collapse
- #errors ⇒ Object
- #persisted? ⇒ Boolean
- #to_key ⇒ Object
- #to_model ⇒ Object
- #to_param ⇒ Object
- #to_partial_path ⇒ Object
Instance Method Details
#errors ⇒ Object
8 |
# File 'lib/llm_specs/active_model.rb', line 8 def errors = Hash.new { |h,k| h[k] = [] } |
#persisted? ⇒ Boolean
7 |
# File 'lib/llm_specs/active_model.rb', line 7 def persisted? = true |
#to_key ⇒ Object
10 |
# File 'lib/llm_specs/active_model.rb', line 10 def to_key = [id] |
#to_model ⇒ Object
9 |
# File 'lib/llm_specs/active_model.rb', line 9 def to_model = self |
#to_param ⇒ Object
11 |
# File 'lib/llm_specs/active_model.rb', line 11 def to_param = id |
#to_partial_path ⇒ Object
12 |
# File 'lib/llm_specs/active_model.rb', line 12 def to_partial_path = "models/model" |