Class: Motor::ResourceMethodsController

Inherits:
ApiBaseController show all
Defined in:
app/controllers/motor/resource_methods_controller.rb

Instance Method Summary collapse

Methods inherited from ApiBaseController

#current_ability, #current_user

Instance Method Details

#showObject



7
8
9
# File 'app/controllers/motor/resource_methods_controller.rb', line 7

def show
  render json: { data: ActiveRecordUtils::FetchMethods.call(resource_class) }
end