Arel Helpers

Public
Useful tools to help construct database queries with ActiveRecord and Arel.
Icons/chart bar
Used 1 time
Created by
E Eric Berry

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/Vqqs0P"
Template Source

Review the code before running this template on your machine.

gem 'arel-helpers'

inject_into_file('app/models/application_record.rb',
  after: "class ApplicationRecord < ActiveRecord::Base\n") do
    "  include ArelHelpers::ArelTable\n"
end
Comments

Sign up or Login to leave a comment.

© 2022 GoRails, LLC