grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Gitlab::SQL::RecursiveCTE#alias_to
Returns an "AS" statement that aliases the CTE name as the given table name. This allows one to trick ActiveRecord into thinking it's selecting from an actual table, when in reality it's selecting from a CTE. alias_table - The Arel table to use as the alias.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--SQL--RecursiveCTE-alias_to-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::SQL::RecursiveCTE#alias_to"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--SQL--RecursiveCTE-alias_to-for-pr
hub pull-request
# Celebrate!