Namespace
Methods
D
T
Included Modules
Instance Public methods
default=(val)
# File app/models/cardboard/field.rb, line 35
def default=(val) 
  self.value_uid = val if self.value_uid.nil? && val.present?
end
type()
# File app/models/cardboard/field.rb, line 28
def type
  @_type ||= self[:type].demodulize.underscore
end
type=(val)

overwritten setter

# File app/models/cardboard/field.rb, line 23
def type=(val)
  return super if val =~ /^Cardboard::Field::/ || val.nil?
  @_type = val.to_s.downcase
  self[:type] = "Cardboard::Field::#{@_type.camelize}"
end