365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
# File 'lib/droonga/searcher.rb', line 365
def format_attribute(attribute, table)
label = attribute[:label]
source = attribute[:source]
if source == "_subrecs"
sub_record_table = table.range
sub_attributes = format_attributes(attribute[:attributes], sub_record_table)
format_attribute_subrecs(label, sub_attributes)
else
expression = attribute[:expression]
if expression
format_attribute_expression(label, expression)
else
column = table.column(source)
format_attribute_column(label, column)
end
end
end
|