Class: FlexiModel::ArModels::Field
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- FlexiModel::ArModels::Field
- Defined in:
- lib/flexi_model/ar_models/field.rb
Constant Summary collapse
- COLUMNS_MAP =
{ boolean: :bool_value, integer: :int_value, decimal: :dec_value, float: :dec_value, string: :str_value, email: :str_value, phone: :str_value, location: :str_value, address: :txt_value, text: :txt_value, multiple: :txt_value, datetime: :dt_value, date: :dt_value, time: :dt_value }
Instance Method Summary collapse
Instance Method Details
#value_column ⇒ Object
31 32 33 |
# File 'lib/flexi_model/ar_models/field.rb', line 31 def value_column FlexiModel::ArModels::Field::COLUMNS_MAP[self.field_type.to_sym] end |