Namespace
- CLASS Cardboard::Field::Date
- CLASS Cardboard::Field::Decimal
- CLASS Cardboard::Field::ExternalLink
- CLASS Cardboard::Field::File
- CLASS Cardboard::Field::Image
- CLASS Cardboard::Field::Integer
- CLASS Cardboard::Field::ResourceLink
- CLASS Cardboard::Field::RichText
- CLASS Cardboard::Field::String
Methods
Included Modules
- RankedModel
Instance Public methods
default=(val)
Link
Source: show
# File app/models/cardboard/field.rb, line 35 def default=(val) self.value_uid = val if self.value_uid.nil? && val.present? end