module MongoMapper::ReadonlyAttributes::ClassMethods
Public Instance Methods
attr_readonly(*attributes)
click to toggle source
# File lib/mongo_mapper/readonly_attributes.rb, line 20 def attr_readonly(*attributes) self._attr_readonly = Set.new(attributes.map { |a| a.to_s }) + (self._attr_readonly || []) end
readonly_attributes()
click to toggle source
# File lib/mongo_mapper/readonly_attributes.rb, line 24 def readonly_attributes self._attr_readonly end