Sha256: d348714c05a6dd63c038ce8f49ac0b30ac378577a26c4cbcf874678a2a20387b
Contents?: true
Size: 375 Bytes
Versions: 18
Compression:
Stored size: 375 Bytes
Contents
- options = {wrapper_html: {class: "col-md-#{field.size}"}} - current_type = field_type(model_presenter,field.name) - options[:as] = :admin_enum if current_type == :enum - options[:as] = :admin_relationship_select if current_type == :relation - options[:as] = :admin_date if current_type == :date - options[:as] = field.as if field.as.present? = f.input field.name, options
Version data entries
18 entries across 18 versions & 1 rubygems