Module ModelSecurity::ClassMethods
In: lib/model_security.rb

Methods

Included Modules

BothClassAndInstanceMethods

Public Instance methods

Install default permissions for all of the attributes that Rails defines.

Readable:

  created_at, created_on, type, id, updated_at, updated_on,
  lock_version, position, parent_id, lft, rgt,
  table_name + '_count'

Writable:

  updated_at, updated_on, lock_version, position, parent_id, lft, rgt

Writable only before the first save of an Active Record:

  created_at, created_on, type, id

Return true if display of the attribute is permitted. attribute is a symbol, and should match a field in the database schema corresponding to this model.

Declare whether reads and writes are permitted on the named attributes.

Declare whether display of the named attribute is permitted.

Declare whether read is permitted upon the named attributes.

Declare whether write is permitted upon the named attributes.

[Validate]