query

Selecting Fixed Virtual Attributes with Arel

Arel: A Quick Intro Arel [https://github.com/rails/arel] is a SQL AST (Abstract Syntax Tree-like) manager for Ruby. It allows us to write complex SQL queries in a semantic, reusable fashion. Arel is "framework framework"; it's designed to optimize object and collection modeling over…