method

attr_readonly

Importance_1
Ruby on Rails latest stable (v2.3.4) - 0 notes - Class: ActiveRecord::Base
attr_readonly(*attributes) public

Attributes listed as readonly can be set for a new record, but will be ignored in database updates afterwards.

Show source
Register or log in to add new notes.