Plugins - attr_hidden

StarAdd to favorites

Active Record uses single table inheritance to allow to represent in the database a hierarchy of objects.

Sometimes however you would like to hide some columns of the general table from some subclasses, as these columns only have a meaning in some other subclasses.

Using this plugin will allow it, as simple as writing:

attr_hidden :attr1, :attr2

in the class where you would like to hide attr1 and attr2.

Giorgio Gonnella

http://github.com/ggonnella/attr_hidden/tree/master

git://github.com/ggonnella/attr_hidden.git

Rails' (MIT)

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?