Class: Motor::SchemaController
- Inherits:
-
ApiBaseController
- Object
- ActionController::API
- ApiBaseController
- Motor::SchemaController
- Defined in:
- app/controllers/motor/schema_controller.rb
Instance Method Summary collapse
Methods included from CurrentAbility
Methods included from CurrentUserMethod
Instance Method Details
#index ⇒ Object
9 10 11 |
# File 'app/controllers/motor/schema_controller.rb', line 9 def index render json: { data: schema } end |
#show ⇒ Object
13 14 15 |
# File 'app/controllers/motor/schema_controller.rb', line 13 def show render json: { data: schema.find { |model| model[:name] == resource_class.name.underscore } } end |