Project

exclude

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
The inverse of `select` on an ActiveRecord::Relation. Use to avoid loading large columns (e.g. texts or blobs).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3
 Project Readme

Exclude

The inverse of select on an ActiveRecord::Relation. Use to avoid loading large columns (e.g. texts or blobs).

See exclude.rb for a full example.

Usage

create_table "users" do |t|
  t.string "name"
  t.text   "notes"
end

class User < ActiveRecord::Base
  include Exclude
end

# User.exclude('notes') => "SELECT users.name FROM users"