Class: Motor::ResourceDefaultQueriesController

Inherits:
ApiBaseController
  • Object
show all
Defined in:
app/controllers/motor/resource_default_queries_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_default_queries_controller.rb', line 9

def show
  render json: { data: { sql: resource_class.all.to_sql } }
end