Skip to content

Instantly share code, notes, and snippets.

View juliolinarez's full-sized avatar
🎯
Focusing

Julio Linarez juliolinarez

🎯
Focusing
View GitHub Profile
@juliolinarez
juliolinarez / arel_helpers.rb
Created December 3, 2021 13:09 — forked from hadees/arel_helpers.rb
Arel Helpers
module ArelHelpers
extend self
def self.included(base)
base.extend self
end
def asterisk(arel_table_or_model)
arel_table, columns = case arel_table_or_model
when Arel::Table