Class: Motor::ResourceMethodsController

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

Instance Method Summary collapse

Methods included from CurrentAbility

#current_ability

Methods included from CurrentUserMethod

#current_user

Instance Method Details

#showObject


9
10
11
# File 'app/controllers/motor/resource_methods_controller.rb', line 9

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