def attributes_properties(**options)
      options_set = Set.new options.keys.map(&:to_s)

      unless options_set.subset? Set.new(@fields)
        fail "You have to provide correct attribute names in" +
             "'attributes_properties' for '#{@model}'."
      end

      # TODO: Check for valid value for each key
      @field_details = options || {}
    end
def attributes_properties(**options)
      options_set = Set.new options.keys.map(&:to_s)

      unless options_set.subset? Set.new(@fields)
        fail "You have to provide correct attribute names in" +
             "'attributes_properties' for '#{@model}'."
      end

      # TODO: Check for valid value for each key
      @field_details = options || {}
    end
Specify attributes details, for example if you want to change a datetime
 field type to string you need to do like this:

  in_form do
    attributes_properties date: { as: :string }
  end