Files

Class Index [+]

Quicksearch

ActiveRecord::ReadonlyAttributes::ClassMethods

Public Instance Methods

attr_readonly(*attributes) click to toggle source

Attributes listed as readonly will be used to create a new record but update operations will ignore these fields.

    # File lib/active_record/readonly_attributes.rb, line 16
16:       def attr_readonly(*attributes)
17:         self._attr_readonly = Set.new(attributes.map { |a| a.to_s }) + (self._attr_readonly || [])
18:       end
readonly_attributes() click to toggle source

Returns an array of all the attributes that have been specified as readonly.

    # File lib/active_record/readonly_attributes.rb, line 21
21:       def readonly_attributes
22:         self._attr_readonly
23:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.