Module: ActiveAgent::SchemaGenerator::ActiveRecordClassMethods
- Defined in:
- lib/active_agent/schema_generator.rb
Overview
Class methods added to ActiveRecord models.
Instance Method Summary collapse
-
#to_json_schema(options = {}) ⇒ Hash
Generates a JSON Schema representation of the ActiveRecord model.
Instance Method Details
#to_json_schema(options = {}) ⇒ Hash
Generates a JSON Schema representation of the ActiveRecord model.
79 80 81 |
# File 'lib/active_agent/schema_generator.rb', line 79 def to_json_schema( = {}) ActiveAgent::SchemaGenerator::Builder.json_schema_from_model(self, ) end |