0.0
No commit activity in last 3 years
No release in over 3 years
Hides the content columns of ActiveRecord Model
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

hide_columns¶ ↑

Hide Columns hides the content columns of the ActiveRecord Object.

Update¶ ↑

Hide columns is replaced by the define_columns gem. The author will be maintaining define_columns in the future.

Installation¶ ↑

$ gem install hide_columns

Usage¶ ↑

# Person has content_columns [ "name", "address", "gender", "hobbies" ]
# Note that the names must be an exact match
class Person < ActiveRecord::Base
  hide_columns ["hobbies", "address"]
end

# Person.content_columns returns [ "name", "gender" ]

Copyright © 2009 Wong Liang Zan. See LICENSE for details.