hide_columns

Hide Columns hides the content columns of the ActiveRecord Object.

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.